1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-26 01:35:41 +03:00

Barometer update fix

This commit is contained in:
Martin Budden 2016-09-19 08:38:56 +01:00 committed by borisbstyle
parent 3178d71e7c
commit 0ab650d8aa

View file

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