mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 01:35:41 +03:00
Merge pull request #11740 from SteveCEvans/baro_sleep
This commit is contained in:
commit
2a827d594f
1 changed files with 1 additions and 2 deletions
|
@ -456,12 +456,11 @@ uint32_t baroUpdate(timeUs_t currentTimeUs)
|
||||||
DEBUG_SET(DEBUG_BARO, 2, baroPressure);
|
DEBUG_SET(DEBUG_BARO, 2, baroPressure);
|
||||||
DEBUG_SET(DEBUG_BARO, 3, baroPressureSum);
|
DEBUG_SET(DEBUG_BARO, 3, baroPressureSum);
|
||||||
|
|
||||||
sleepTime = baro.dev.ut_delay;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Where we are using a state machine call schedulerIgnoreTaskExecRate() for all states bar one
|
// Where we are using a state machine call schedulerIgnoreTaskExecRate() for all states bar one
|
||||||
if (sleepTime != baro.dev.ut_delay) {
|
if (state != BARO_STATE_PRESSURE_START) {
|
||||||
schedulerIgnoreTaskExecRate();
|
schedulerIgnoreTaskExecRate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue