mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 14:25:20 +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)) {
|
||||
const uint32_t newDeadline = baroUpdate();
|
||||
if (newDeadline != 0) {
|
||||
rescheduleTask(TASK_SELF, newDeadline);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue