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:
Beat Küng 2020-06-18 17:21:47 +02:00 committed by Daniel Agar
parent 157ef43e28
commit a3d1c94aa4
1 changed files with 1 additions and 1 deletions

View File

@ -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);