mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 16:55:36 +03:00
Barometer update fix
This commit is contained in:
parent
3178d71e7c
commit
0ab650d8aa
1 changed files with 4 additions and 2 deletions
|
@ -979,8 +979,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);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue