From 3cfb6ba4a7bfcf2d491b20f85032ea3324c1fe2b Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Sun, 3 Apr 2016 08:07:04 +0100 Subject: [PATCH] Do not send unneeded NSH command any more --- src/modules/simulator/simulator_mavlink.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/modules/simulator/simulator_mavlink.cpp b/src/modules/simulator/simulator_mavlink.cpp index f7349836af..045d751f0a 100644 --- a/src/modules/simulator/simulator_mavlink.cpp +++ b/src/modules/simulator/simulator_mavlink.cpp @@ -529,15 +529,6 @@ void Simulator::pollForMAVLinkMessages(bool publish) if (serial_fd < 0) { PX4_INFO("Not using %s for radio control input. Assuming joystick input via MAVLink.", PIXHAWK_DEVICE); - } else { - - // tell the device to stream some messages - char command[] = "\nsh /etc/init.d/rc.usb\n"; - int w = ::write(serial_fd, command, sizeof(command)); - - if (w <= 0) { - PX4_WARN("failed to send streaming command to %s", PIXHAWK_DEVICE); - } } char serial_buf[1024];