HAL_Linux: Remove the additional portNumber offset

The socket is being launched in (_base_port + portNumber) port
following SITL impl. In order to avoid confusions portNumber has
been set to 0.
This commit is contained in:
Víctor Mayoral Vilches 2014-06-20 14:29:20 +02:00 committed by Andrew Tridgell
parent 02c171b19f
commit fa6c5ba80e

View File

@ -242,7 +242,7 @@ void LinuxUARTDriver::_tcp_start_connection(bool wait_for_connection)
int ret;
int listen_fd = -1; // socket we are listening on
int net_fd = -1; // network file descriptor, will be linked to wr_fd and rd_fd
uint8_t portNumber = 1;
uint8_t portNumber = 0; // connecto to _base_port + portNumber
// if (_console) {
// // hack for console access