Browse Source

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.
mission-4.1.18
Víctor Mayoral Vilches 11 years ago committed by Andrew Tridgell
parent
commit
fa6c5ba80e
  1. 2
      libraries/AP_HAL_Linux/UARTDriver.cpp

2
libraries/AP_HAL_Linux/UARTDriver.cpp

@ -242,7 +242,7 @@ void LinuxUARTDriver::_tcp_start_connection(bool wait_for_connection) @@ -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

Loading…
Cancel
Save