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 <julian@oes.ch>
This commit is contained in:
Julian Oes 2022-12-23 15:29:31 +13:00 committed by Daniel Agar
parent 86a3d2459a
commit bb591c6c29
1 changed files with 0 additions and 2 deletions

View File

@ -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