Browse Source

protocol_splitter: reduce poll timeout from 100ms to 10ms

This matches the timeout in mavlink_receiver.
With the higher timeout sending of e.g. mavlink logging was done at a lower
rate.
master
Beat Küng 4 years ago committed by Daniel Agar
parent
commit
375b014444
  1. 2
      src/drivers/protocol_splitter/protocol_splitter.cpp

2
src/drivers/protocol_splitter/protocol_splitter.cpp

@ -358,7 +358,7 @@ pollevent_t DevCommon::poll_state(struct file *filp) @@ -358,7 +358,7 @@ pollevent_t DevCommon::poll_state(struct file *filp)
* the _fd in here or by overriding some other method.
*/
::poll(fds, sizeof(fds) / sizeof(fds[0]), 100);
::poll(fds, sizeof(fds) / sizeof(fds[0]), 10);
return POLLIN;
}

Loading…
Cancel
Save