From 2fbb1aee84912032dff3faaef2cf337bef5a9f31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Wed, 25 Jan 2017 18:29:23 +0100 Subject: [PATCH] temperature_calibration: fix poll (number of fds), remove usleep useep() is not needed because we use the poll() --- src/modules/events/temperature_calibration.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/modules/events/temperature_calibration.cpp b/src/modules/events/temperature_calibration.cpp index 60143c5d0d..41a9cd480e 100644 --- a/src/modules/events/temperature_calibration.cpp +++ b/src/modules/events/temperature_calibration.cpp @@ -176,7 +176,7 @@ void Tempcal::task_main() //uint16_t l = 0; while (!_task_should_exit) { - int ret = px4_poll(fds, sizeof(fds) / sizeof(fds[0]), 1000); + int ret = px4_poll(fds, num_gyro, 1000); if (ret < 0) { // Poll error, sleep and try again @@ -316,7 +316,6 @@ void Tempcal::task_main() } } - usleep(100); } for (unsigned i = 0; i < num_gyro; i++) {