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:
parent
dd05754fae
commit
b590629f9a
1 changed files with 3 additions and 1 deletions
|
@ -991,8 +991,10 @@ 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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue