forked from Archive/PX4-Autopilot
logger: reduce poll timeout to 20ms
Just to ensure even if the topic is not updated, logger will still update regularly.
This commit is contained in:
parent
157ef43e28
commit
a3d1c94aa4
|
@ -844,7 +844,7 @@ void Logger::run()
|
|||
px4_pollfd_struct_t fds[1];
|
||||
fds[0].fd = polling_topic_sub;
|
||||
fds[0].events = POLLIN;
|
||||
int pret = px4_poll(fds, 1, 1000);
|
||||
int pret = px4_poll(fds, 1, 20);
|
||||
|
||||
if (pret < 0) {
|
||||
PX4_ERR("poll failed (%i)", pret);
|
||||
|
|
Loading…
Reference in New Issue