From a3d1c94aa4b648c2d2cde70646263cbb0a524d39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Thu, 18 Jun 2020 17:21:47 +0200 Subject: [PATCH] logger: reduce poll timeout to 20ms Just to ensure even if the topic is not updated, logger will still update regularly. --- src/modules/logger/logger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/logger/logger.cpp b/src/modules/logger/logger.cpp index a7d9b874e6..98dba66ae6 100644 --- a/src/modules/logger/logger.cpp +++ b/src/modules/logger/logger.cpp @@ -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);