Skip to content

Commit

Permalink
Add missing else clauses
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveCEvans committed Jan 15, 2022
1 parent 0cbd4c6 commit 815cb41
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/main/sensors/barometer.c
Expand Up @@ -410,17 +410,19 @@ uint32_t baroUpdate(timeUs_t currentTimeUs)
case BARO_STATE_TEMPERATURE_READ:
if (baro.dev.read_ut(&baro.dev)) {
state = BARO_STATE_TEMPERATURE_SAMPLE;
} else {
// No action was taken as the read has not completed
schedulerIgnoreTaskStateTime();
}
// No action was taken as the read has not completed
schedulerIgnoreTaskStateTime();
break;

case BARO_STATE_TEMPERATURE_SAMPLE:
if (baro.dev.get_ut(&baro.dev)) {
state = BARO_STATE_PRESSURE_START;
} else {
// No action was taken as the read has not completed
schedulerIgnoreTaskStateTime();
}
// No action was taken as the read has not completed
schedulerIgnoreTaskStateTime();
break;

case BARO_STATE_PRESSURE_START:
Expand Down

0 comments on commit 815cb41

Please sign in to comment.