1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-20 06:45:16 +03:00

Barometer update fix

This commit is contained in:
Martin Budden 2016-09-19 08:38:56 +01:00
parent dd05754fae
commit b590629f9a

View file

@ -991,9 +991,11 @@ void taskUpdateBaro(uint32_t currentTime)
if (sensors(SENSOR_BARO)) { if (sensors(SENSOR_BARO)) {
const uint32_t newDeadline = baroUpdate(); const uint32_t newDeadline = baroUpdate();
if (newDeadline != 0) {
rescheduleTask(TASK_SELF, newDeadline); rescheduleTask(TASK_SELF, newDeadline);
} }
} }
}
#endif #endif
#ifdef SONAR #ifdef SONAR