GCS_MAVLink: Pause to allow serial port to drain.

This avoids a race between the UART and the auto flow control code.
This commit is contained in:
Brad Bosch 2015-07-13 18:44:31 -05:00 committed by Andrew Tridgell
parent f1eb2f88df
commit c87a7c7df9

View File

@ -89,6 +89,9 @@ GCS_MAVLINK::setup_uart(const AP_SerialManager& serial_manager, AP_SerialManager
uart->write(0x30);
uart->write(0x20);
}
// since tcdrain() and TCSADRAIN may not be implemented...
hal.scheduler->delay(1);
uart->set_flow_control(old_flow_control);
// now change back to desired baudrate