fix micrortps_transport: set poll fd when baudrate is 0

This commit is contained in:
Beat Küng
2021-08-13 14:06:12 +02:00
committed by Daniel Agar
parent 0885f37667
commit 00d939995b
@@ -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;
}