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:
parent
02c171b19f
commit
fa6c5ba80e
@ -242,7 +242,7 @@ void LinuxUARTDriver::_tcp_start_connection(bool wait_for_connection)
|
|||||||
int ret;
|
int ret;
|
||||||
int listen_fd = -1; // socket we are listening on
|
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
|
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) {
|
// if (_console) {
|
||||||
// // hack for console access
|
// // hack for console access
|
||||||
|
Loading…
Reference in New Issue
Block a user