From 37cb24afd8341893647ccd98e46030660eedf8db Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Fri, 23 Dec 2022 15:29:31 +1300 Subject: [PATCH] mavlink_shell: fix stall on CubeOrange On CubeOrange where no console is configured by default, starting MAVLink shell just stalls, and doesn't work. Also, logfile download has been reported not to work, and again, seems to work with this change. Signed-off-by: Julian Oes --- src/modules/mavlink/mavlink_shell.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/modules/mavlink/mavlink_shell.cpp b/src/modules/mavlink/mavlink_shell.cpp index f0feafa623..e566741f05 100644 --- a/src/modules/mavlink/mavlink_shell.cpp +++ b/src/modules/mavlink/mavlink_shell.cpp @@ -110,8 +110,6 @@ int MavlinkShell::start() #ifdef __PX4_NUTTX sched_lock(); #endif /* __PX4_NUTTX */ - fflush(stdout); - fflush(stderr); int fd_backups[2]; //we don't touch stderr, we will redirect it to stdout in the startup of the shell task