HAL_Linux: UART-like TCP sockets, check for ":wait"

This commit is contained in:
Víctor Mayoral Vilches 2014-06-20 14:20:09 +02:00 committed by Andrew Tridgell
parent ca80c0b8e2
commit 02c171b19f
1 changed files with 5 additions and 1 deletions

View File

@ -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);
}