mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-18 04:27:34 +08:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user