mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 16:55:36 +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, 3, baroPressureSum);
|
||||
|
||||
sleepTime = baro.dev.ut_delay;
|
||||
break;
|
||||
}
|
||||
|
||||
// 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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue