diff --git a/src/main/fc/mw.c b/src/main/fc/mw.c index 87aee6acb..ab7ed7a58 100755 --- a/src/main/fc/mw.c +++ b/src/main/fc/mw.c @@ -726,8 +726,10 @@ void taskUpdateCompass(void) void taskUpdateBaro(void) { if (sensors(SENSOR_BARO)) { - uint32_t newDeadline = baroUpdate(); - rescheduleTask(TASK_SELF, newDeadline); + const uint32_t newDeadline = baroUpdate(); + if (newDeadline != 0) { + rescheduleTask(TASK_SELF, newDeadline); + } } //updatePositionEstimator_BaroTopic(currentTime);