mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 00:05:33 +03:00
Enabled switch fallthrough checking by compiler
This commit is contained in:
parent
9dda8c4f18
commit
671382234a
20 changed files with 100 additions and 58 deletions
|
@ -880,12 +880,10 @@ void blackboxFinish(void)
|
|||
case BLACKBOX_STATE_SHUTTING_DOWN:
|
||||
// We're already stopped/shutting down
|
||||
break;
|
||||
|
||||
case BLACKBOX_STATE_RUNNING:
|
||||
case BLACKBOX_STATE_PAUSED:
|
||||
blackboxLogEvent(FLIGHT_LOG_EVENT_LOG_END, NULL);
|
||||
|
||||
// Fall through
|
||||
FALLTHROUGH;
|
||||
default:
|
||||
blackboxSetState(BLACKBOX_STATE_SHUTTING_DOWN);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue