mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 19:32:36 +08:00
fix micrortps_transport: set poll fd when baudrate is 0
This commit is contained in:
@@ -330,6 +330,8 @@ int UART_node::init()
|
||||
|
||||
// If using shared UART, no need to set it up
|
||||
if (_baudrate == 0) {
|
||||
_poll_fd[0].fd = _uart_fd;
|
||||
_poll_fd[0].events = POLLIN;
|
||||
return _uart_fd;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user