diff --git a/src/comm/MAVLinkProtocol.cc b/src/comm/MAVLinkProtocol.cc index 7e4bb4e8dc0390c424177755722fbfeafbf29f7c..2653e409a294f1f3cf93b2fabf0914b8f572b7d0 100644 --- a/src/comm/MAVLinkProtocol.cc +++ b/src/comm/MAVLinkProtocol.cc @@ -191,7 +191,7 @@ void MAVLinkProtocol::_linkStatusChanged(LinkInterface* link, bool connected) // Send command to start MAVLink // XXX hacky but safe // Start NSH - const char init[] = {0x0d, 0x0d, 0x0d}; + const char init[] = {0x0d, 0x0d, 0x0d, 0x0d}; link->writeBytes(init, sizeof(init)); const char* cmd = "sh /etc/init.d/rc.usb\n"; link->writeBytes(cmd, strlen(cmd));