From 375b014444f5ff9cbd94f28a391ebc522ab09840 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Fri, 13 Aug 2021 14:07:46 +0200 Subject: [PATCH] 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. --- src/drivers/protocol_splitter/protocol_splitter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/protocol_splitter/protocol_splitter.cpp b/src/drivers/protocol_splitter/protocol_splitter.cpp index 8cadf68bf8..0bbe0d8721 100644 --- a/src/drivers/protocol_splitter/protocol_splitter.cpp +++ b/src/drivers/protocol_splitter/protocol_splitter.cpp @@ -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; }