From 02c171b19f2aa2ddc4eb9eac57ab3311ee178abb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Mayoral=20Vilches?= Date: Fri, 20 Jun 2014 14:20:09 +0200 Subject: [PATCH] HAL_Linux: UART-like TCP sockets, check for ":wait" --- libraries/AP_HAL_Linux/UARTDriver.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libraries/AP_HAL_Linux/UARTDriver.cpp b/libraries/AP_HAL_Linux/UARTDriver.cpp index 67da8a771b..b9ee6df359 100644 --- a/libraries/AP_HAL_Linux/UARTDriver.cpp +++ b/libraries/AP_HAL_Linux/UARTDriver.cpp @@ -77,7 +77,11 @@ void LinuxUARTDriver::begin(uint32_t b, uint16_t rxS, uint16_t txS) { _connected = false; if (_flag != NULL){ - _tcp_start_connection(true); + if (!strcmp(_flag, "wait")){ + _tcp_start_connection(true); + } else { + _tcp_start_connection(false); + } } else { _tcp_start_connection(false); }