From bb591c6c29b49622bf79f2528b8382c930f3720e 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 cce39a472f..4ff139d0d7 100644 --- a/src/modules/mavlink/mavlink_shell.cpp +++ b/src/modules/mavlink/mavlink_shell.cpp @@ -114,8 +114,6 @@ int MavlinkShell::start() #ifdef __PX4_NUTTX sched_lock(); #endif /* __PX4_NUTTX */ - fflush(stdout); - fflush(stderr); #ifdef __PX4_POSIX int remote_in_fd = dup(_shell_fds[0]); // Input file descriptor for the remote shell