Got rid of fallthrough warnings
This commit is contained in:
committed by
Alessandro Genova
parent
c6270444f0
commit
c45fed8ea9
@@ -326,7 +326,7 @@ bool fast_stopwatch_face_loop(movement_event_t event, void *context) {
|
|||||||
case EVENT_LIGHT_BUTTON_DOWN:
|
case EVENT_LIGHT_BUTTON_DOWN:
|
||||||
case EVENT_LIGHT_LONG_PRESS:
|
case EVENT_LIGHT_LONG_PRESS:
|
||||||
_button_beep();
|
_button_beep();
|
||||||
// Fall into the case below;
|
// fall through
|
||||||
case EVENT_TICK:
|
case EVENT_TICK:
|
||||||
_draw_indicators(state, event, elapsed);
|
_draw_indicators(state, event, elapsed);
|
||||||
_display_elapsed(state, elapsed);
|
_display_elapsed(state, elapsed);
|
||||||
|
|||||||
@@ -261,6 +261,7 @@ bool chirpy_demo_face_loop(movement_event_t event, void *context) {
|
|||||||
if (state->mode != CDM_CHIRPING) {
|
if (state->mode != CDM_CHIRPING) {
|
||||||
movement_move_to_face(0);
|
movement_move_to_face(0);
|
||||||
}
|
}
|
||||||
|
// fall through
|
||||||
default:
|
default:
|
||||||
movement_default_loop_handler(event);
|
movement_default_loop_handler(event);
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user