summaryrefslogtreecommitdiffstats
path: root/movement/watch_faces/complication
diff options
context:
space:
mode:
Diffstat (limited to 'movement/watch_faces/complication')
-rw-r--r--movement/watch_faces/complication/alarm_face.c4
-rw-r--r--movement/watch_faces/complication/astronomy_face.c9
-rw-r--r--movement/watch_faces/complication/blinky_face.c5
-rw-r--r--movement/watch_faces/complication/countdown_face.c4
-rw-r--r--movement/watch_faces/complication/counter_face.c7
-rw-r--r--movement/watch_faces/complication/databank_face.c8
-rw-r--r--movement/watch_faces/complication/day_one_face.c5
-rw-r--r--movement/watch_faces/complication/interval_face.c8
-rw-r--r--movement/watch_faces/complication/moon_phase_face.c8
-rw-r--r--movement/watch_faces/complication/orrery_face.c9
-rw-r--r--movement/watch_faces/complication/probability_face.c4
-rw-r--r--movement/watch_faces/complication/pulsometer_face.c7
-rw-r--r--movement/watch_faces/complication/ratemeter_face.c7
-rw-r--r--movement/watch_faces/complication/rpn_calculator_alt_face.c2
-rw-r--r--movement/watch_faces/complication/rpn_calculator_face.c1
-rw-r--r--movement/watch_faces/complication/sailing_face.c7
-rw-r--r--movement/watch_faces/complication/stock_stopwatch_face.c6
-rw-r--r--movement/watch_faces/complication/stopwatch_face.c5
-rw-r--r--movement/watch_faces/complication/sunrise_sunset_face.c7
-rw-r--r--movement/watch_faces/complication/tachymeter_face.c4
-rw-r--r--movement/watch_faces/complication/tally_face.c7
-rw-r--r--movement/watch_faces/complication/tarot_face.c8
-rw-r--r--movement/watch_faces/complication/tempchart_face.c7
-rw-r--r--movement/watch_faces/complication/tomato_face.c4
-rw-r--r--movement/watch_faces/complication/totp_face.c8
-rw-r--r--movement/watch_faces/complication/totp_face_lfs.c8
-rw-r--r--movement/watch_faces/complication/wake_face.c9
27 files changed, 43 insertions, 125 deletions
diff --git a/movement/watch_faces/complication/alarm_face.c b/movement/watch_faces/complication/alarm_face.c
index 52a6c542..479f2f1e 100644
--- a/movement/watch_faces/complication/alarm_face.c
+++ b/movement/watch_faces/complication/alarm_face.c
@@ -441,13 +441,11 @@ bool alarm_face_loop(movement_event_t event, movement_settings_t *settings, void
_alarm_update_alarm_enabled(settings, state);
}
break;
- case EVENT_MODE_BUTTON_UP:
- movement_move_to_next_face();
- break;
case EVENT_TIMEOUT:
movement_move_to_face(0);
break;
default:
+ movement_default_loop_handler(event, settings);
break;
}
diff --git a/movement/watch_faces/complication/astronomy_face.c b/movement/watch_faces/complication/astronomy_face.c
index 50e5221b..204a0a3a 100644
--- a/movement/watch_faces/complication/astronomy_face.c
+++ b/movement/watch_faces/complication/astronomy_face.c
@@ -219,14 +219,6 @@ bool astronomy_face_loop(movement_event_t event, movement_settings_t *settings,
case EVENT_TICK:
_astronomy_face_update(event, settings, state);
break;
- case EVENT_MODE_BUTTON_UP:
- // You shouldn't need to change this case; Mode almost always moves to the next watch face.
- movement_move_to_next_face();
- break;
- case EVENT_LIGHT_BUTTON_UP:
- // If you have other uses for the Light button, you can opt not to illuminate the LED for this event.
- movement_illuminate_led();
- break;
case EVENT_ALARM_BUTTON_UP:
switch (state->mode) {
case ASTRONOMY_MODE_SELECTING_BODY:
@@ -267,6 +259,7 @@ bool astronomy_face_loop(movement_event_t event, movement_settings_t *settings,
// TODO?
break;
default:
+ movement_default_loop_handler(event, settings);
break;
}
diff --git a/movement/watch_faces/complication/blinky_face.c b/movement/watch_faces/complication/blinky_face.c
index 4c17476e..dc3c8ab0 100644
--- a/movement/watch_faces/complication/blinky_face.c
+++ b/movement/watch_faces/complication/blinky_face.c
@@ -57,9 +57,6 @@ bool blinky_face_loop(movement_event_t event, movement_settings_t *settings, voi
case EVENT_ACTIVATE:
_blinky_face_update_lcd(state);
break;
- case EVENT_MODE_BUTTON_UP:
- movement_move_to_next_face();
- break;
case EVENT_LIGHT_BUTTON_UP:
if (!state->active) {
state->color = (state->color + 1) % 3;
@@ -93,7 +90,9 @@ bool blinky_face_loop(movement_event_t event, movement_settings_t *settings, voi
break;
case EVENT_TIMEOUT:
if (!state->active) movement_move_to_face(0);
+ break;
default:
+ movement_default_loop_handler(event, settings);
break;
}
diff --git a/movement/watch_faces/complication/countdown_face.c b/movement/watch_faces/complication/countdown_face.c
index 60f0a5b0..15fc375d 100644
--- a/movement/watch_faces/complication/countdown_face.c
+++ b/movement/watch_faces/complication/countdown_face.c
@@ -289,8 +289,10 @@ bool countdown_face_loop(movement_event_t event, movement_settings_t *settings,
movement_move_to_face(0);
break;
case EVENT_LOW_ENERGY_UPDATE:
+ break;
default:
- break;
+ movement_default_loop_handler(event, settings);
+ break;
}
return true;
diff --git a/movement/watch_faces/complication/counter_face.c b/movement/watch_faces/complication/counter_face.c
index fb03ce67..14f68629 100644
--- a/movement/watch_faces/complication/counter_face.c
+++ b/movement/watch_faces/complication/counter_face.c
@@ -47,12 +47,6 @@ bool counter_face_loop(movement_event_t event, movement_settings_t *settings, vo
counter_state_t *state = (counter_state_t *)context;
switch (event.event_type) {
- case EVENT_MODE_BUTTON_UP:
- movement_move_to_next_face();
- break;
- case EVENT_LIGHT_BUTTON_DOWN:
- movement_illuminate_led();
- break;
case EVENT_ALARM_BUTTON_UP:
state->counter_idx++; // increment counter index
if (state->counter_idx>99) { //0-99
@@ -72,6 +66,7 @@ bool counter_face_loop(movement_event_t event, movement_settings_t *settings, vo
// ignore timeout
break;
default:
+ movement_default_loop_handler(event, settings);
break;
}
diff --git a/movement/watch_faces/complication/databank_face.c b/movement/watch_faces/complication/databank_face.c
index 9a5b3331..c32d6962 100644
--- a/movement/watch_faces/complication/databank_face.c
+++ b/movement/watch_faces/complication/databank_face.c
@@ -110,12 +110,6 @@ bool databank_face_loop(movement_event_t event, movement_settings_t *settings, v
databank_state.current_word = 0;
display();
break;
- case EVENT_MODE_BUTTON_UP:
- // when the user presses 'mode', we tell movement to move to the next watch face.
- // movement will call our resign function, clear the screen, and transfer control
- // to the next watch face in the list.
- movement_move_to_next_face();
- break;
case EVENT_ALARM_LONG_PRESS:
databank_state.databank_page = (databank_state.databank_page + 1) % databank_num_pages;
databank_state.current_word = 0;
@@ -141,7 +135,9 @@ bool databank_face_loop(movement_event_t event, movement_settings_t *settings, v
// and it will do it long before the watch enters low energy mode. This ensures we
// won't be on screen, and thus opts us out of getting the EVENT_LOW_ENERGY_UPDATE above.
movement_move_to_face(0);
+ break;
default:
+ movement_default_loop_handler(event, settings);
break;
}
diff --git a/movement/watch_faces/complication/day_one_face.c b/movement/watch_faces/complication/day_one_face.c
index 99433990..00e711bc 100644
--- a/movement/watch_faces/complication/day_one_face.c
+++ b/movement/watch_faces/complication/day_one_face.c
@@ -123,9 +123,6 @@ bool day_one_face_loop(movement_event_t event, movement_settings_t *settings, vo
}
}
break;
- case EVENT_MODE_BUTTON_UP:
- movement_move_to_next_face();
- break;
case EVENT_LIGHT_BUTTON_DOWN:
// only illuminate if we're in display mode
if (state->current_page == 0) movement_illuminate_led();
@@ -176,7 +173,9 @@ bool day_one_face_loop(movement_event_t event, movement_settings_t *settings, vo
if (state->current_page != 0) {
movement_move_to_face(0);
}
+ break;
default:
+ movement_default_loop_handler(event, settings);
break;
}
diff --git a/movement/watch_faces/complication/interval_face.c b/movement/watch_faces/complication/interval_face.c
index 0c35cdfc..1f982d3a 100644
--- a/movement/watch_faces/complication/interval_face.c
+++ b/movement/watch_faces/complication/interval_face.c
@@ -664,14 +664,12 @@ bool interval_face_loop(movement_event_t event, movement_settings_t *settings, v
watch_buzzer_play_sequence((int8_t *)_sound_seq_finish, NULL);
}
break;
- case EVENT_MODE_BUTTON_UP:
- movement_move_to_next_face();
- break;
case EVENT_TIMEOUT:
if (state->face_state != interval_state_running) movement_move_to_face(0);
break;
default:
- break;
+ movement_default_loop_handler(event, settings);
+ break;
}
return true;
-} \ No newline at end of file
+}
diff --git a/movement/watch_faces/complication/moon_phase_face.c b/movement/watch_faces/complication/moon_phase_face.c
index eb919375..9aac374a 100644
--- a/movement/watch_faces/complication/moon_phase_face.c
+++ b/movement/watch_faces/complication/moon_phase_face.c
@@ -155,12 +155,6 @@ bool moon_phase_face_loop(movement_event_t event, movement_settings_t *settings,
watch_display_string(" ", 8);
if (!watch_tick_animation_is_running()) watch_start_tick_animation(1000);
break;
- case EVENT_MODE_BUTTON_UP:
- movement_move_to_next_face();
- break;
- case EVENT_LIGHT_BUTTON_DOWN:
- movement_illuminate_led();
- break;
case EVENT_ALARM_BUTTON_UP:
// Pressing the alarm adds an offset of one day to the displayed value,
// so you can see moon phases in the future.
@@ -171,7 +165,7 @@ bool moon_phase_face_loop(movement_event_t event, movement_settings_t *settings,
// QUESTION: Should timeout reset offset to 0?
break;
default:
- break;
+ return movement_default_loop_handler(event, settings);
}
return true;
diff --git a/movement/watch_faces/complication/orrery_face.c b/movement/watch_faces/complication/orrery_face.c
index 3afced98..b533960c 100644
--- a/movement/watch_faces/complication/orrery_face.c
+++ b/movement/watch_faces/complication/orrery_face.c
@@ -174,14 +174,6 @@ bool orrery_face_loop(movement_event_t event, movement_settings_t *settings, voi
case EVENT_TICK:
_orrery_face_update(event, settings, state);
break;
- case EVENT_MODE_BUTTON_UP:
- movement_move_to_next_face();
- break;
- case EVENT_LIGHT_BUTTON_DOWN:
- movement_illuminate_led();
- break;
- case EVENT_LIGHT_BUTTON_UP:
- break;
case EVENT_ALARM_BUTTON_UP:
switch (state->mode) {
case ORRERY_MODE_SELECTING_BODY:
@@ -219,6 +211,7 @@ bool orrery_face_loop(movement_event_t event, movement_settings_t *settings, voi
movement_move_to_face(0);
break;
default:
+ movement_default_loop_handler(event, settings);
break;
}
diff --git a/movement/watch_faces/complication/probability_face.c b/movement/watch_faces/complication/probability_face.c
index 7b056b33..00d1d6d7 100644
--- a/movement/watch_faces/complication/probability_face.c
+++ b/movement/watch_faces/complication/probability_face.c
@@ -141,9 +141,6 @@ bool probability_face_loop(movement_event_t event, movement_settings_t *settings
case EVENT_TICK:
display_dice_roll_animation(state);
break;
- case EVENT_MODE_BUTTON_UP:
- movement_move_to_next_face();
- break;
case EVENT_LIGHT_BUTTON_UP:
// Change how many sides the die has
for (int i = 0; i < NUM_DICE_TYPES; i++) {
@@ -170,6 +167,7 @@ bool probability_face_loop(movement_event_t event, movement_settings_t *settings
watch_display_string("SLEEP ", 4);
break;
default:
+ movement_default_loop_handler(event, settings);
break;
}
diff --git a/movement/watch_faces/complication/pulsometer_face.c b/movement/watch_faces/complication/pulsometer_face.c
index ea7aad59..2247421c 100644
--- a/movement/watch_faces/complication/pulsometer_face.c
+++ b/movement/watch_faces/complication/pulsometer_face.c
@@ -46,12 +46,6 @@ bool pulsometer_face_loop(movement_event_t event, movement_settings_t *settings,
pulsometer_state_t *pulsometer_state = (pulsometer_state_t *)context;
char buf[14];
switch (event.event_type) {
- case EVENT_MODE_BUTTON_UP:
- movement_move_to_next_face();
- break;
- case EVENT_LIGHT_BUTTON_DOWN:
- movement_illuminate_led();
- break;
case EVENT_ALARM_BUTTON_DOWN:
pulsometer_state->measuring = true;
pulsometer_state->pulse = 0xFFFF;
@@ -102,6 +96,7 @@ bool pulsometer_face_loop(movement_event_t event, movement_settings_t *settings,
movement_move_to_face(0);
break;
default:
+ movement_default_loop_handler(event, settings);
break;
}
diff --git a/movement/watch_faces/complication/ratemeter_face.c b/movement/watch_faces/complication/ratemeter_face.c
index 38423eb3..8ae80515 100644
--- a/movement/watch_faces/complication/ratemeter_face.c
+++ b/movement/watch_faces/complication/ratemeter_face.c
@@ -49,12 +49,6 @@ bool ratemeter_face_loop(movement_event_t event, movement_settings_t *settings,
case EVENT_ACTIVATE:
watch_display_string("ra ", 0);
break;
- case EVENT_MODE_BUTTON_UP:
- movement_move_to_next_face();
- break;
- case EVENT_LIGHT_BUTTON_DOWN:
- movement_illuminate_led();
- break;
case EVENT_ALARM_BUTTON_DOWN:
if (ratemeter_state->ticks != 0) {
ratemeter_state->rate = (int16_t)(60.0 / ((float)ratemeter_state->ticks / (float)RATEMETER_FACE_FREQUENCY));
@@ -85,6 +79,7 @@ bool ratemeter_face_loop(movement_event_t event, movement_settings_t *settings,
movement_move_to_face(0);
break;
default:
+ movement_default_loop_handler(event, settings);
break;
}
diff --git a/movement/watch_faces/complication/rpn_calculator_alt_face.c b/movement/watch_faces/complication/rpn_calculator_alt_face.c
index bfbce902..ad7ef900 100644
--- a/movement/watch_faces/complication/rpn_calculator_alt_face.c
+++ b/movement/watch_faces/complication/rpn_calculator_alt_face.c
@@ -441,7 +441,9 @@ bool rpn_calculator_alt_face_loop(movement_event_t event, movement_settings_t *s
movement_move_to_face(0);
break;
case EVENT_LOW_ENERGY_UPDATE:
+ break;
default:
+ movement_default_loop_handler(event, settings);
break;
}
diff --git a/movement/watch_faces/complication/rpn_calculator_face.c b/movement/watch_faces/complication/rpn_calculator_face.c
index 9271a101..2047971b 100644
--- a/movement/watch_faces/complication/rpn_calculator_face.c
+++ b/movement/watch_faces/complication/rpn_calculator_face.c
@@ -333,6 +333,7 @@ bool rpn_calculator_face_loop(movement_event_t event, movement_settings_t *setti
case EVENT_LOW_ENERGY_UPDATE:
break;
default:
+ movement_default_loop_handler(event, settings);
break;
}
diff --git a/movement/watch_faces/complication/sailing_face.c b/movement/watch_faces/complication/sailing_face.c
index 0bdbe8ea..81d99db1 100644
--- a/movement/watch_faces/complication/sailing_face.c
+++ b/movement/watch_faces/complication/sailing_face.c
@@ -196,9 +196,6 @@ bool sailing_face_loop(movement_event_t event, movement_settings_t *settings, vo
}
draw(state, event.subsecond, settings);
break;
- case EVENT_MODE_BUTTON_UP:
- movement_move_to_next_face();
- break;
case EVENT_LIGHT_LONG_PRESS:
if (state->mode == sl_running) {
reset(state);
@@ -257,8 +254,10 @@ bool sailing_face_loop(movement_event_t event, movement_settings_t *settings, vo
}
break;
case EVENT_LOW_ENERGY_UPDATE:
+ break;
default:
- break;
+ movement_default_loop_handler(event, settings);
+ break;
}
return true;
diff --git a/movement/watch_faces/complication/stock_stopwatch_face.c b/movement/watch_faces/complication/stock_stopwatch_face.c
index 1164eb9a..4a9608d9 100644
--- a/movement/watch_faces/complication/stock_stopwatch_face.c
+++ b/movement/watch_faces/complication/stock_stopwatch_face.c
@@ -251,9 +251,6 @@ bool stock_stopwatch_face_loop(movement_event_t event, movement_settings_t *sett
case EVENT_TICK:
_draw();
break;
- case EVENT_MODE_BUTTON_UP:
- movement_move_to_next_face();
- break;
case EVENT_LIGHT_LONG_PRESS:
// kind od hidden feature: long press toggles light on or off
state->light_on_button = !state->light_on_button;
@@ -313,6 +310,7 @@ bool stock_stopwatch_face_loop(movement_event_t event, movement_settings_t *sett
_draw();
break;
default:
+ movement_default_loop_handler(event, settings);
break;
}
return true;
@@ -323,4 +321,4 @@ void stock_stopwatch_face_resign(movement_settings_t *settings, void *context) {
(void) context;
// cancel the keepalive task
movement_cancel_background_task();
-} \ No newline at end of file
+}
diff --git a/movement/watch_faces/complication/stopwatch_face.c b/movement/watch_faces/complication/stopwatch_face.c
index 2a69e9d5..03a74697 100644
--- a/movement/watch_faces/complication/stopwatch_face.c
+++ b/movement/watch_faces/complication/stopwatch_face.c
@@ -107,9 +107,6 @@ bool stopwatch_face_loop(movement_event_t event, movement_settings_t *settings,
_stopwatch_face_update_display(stopwatch_state, true);
}
break;
- case EVENT_MODE_BUTTON_UP:
- movement_move_to_next_face();
- break;
case EVENT_LIGHT_BUTTON_DOWN:
movement_illuminate_led();
if (!stopwatch_state->running) {
@@ -161,7 +158,7 @@ bool stopwatch_face_loop(movement_event_t event, movement_settings_t *settings,
}
break;
default:
- break;
+ return movement_default_loop_handler(event, settings);
}
return true;
diff --git a/movement/watch_faces/complication/sunrise_sunset_face.c b/movement/watch_faces/complication/sunrise_sunset_face.c
index 7807de83..82de9c6e 100644
--- a/movement/watch_faces/complication/sunrise_sunset_face.c
+++ b/movement/watch_faces/complication/sunrise_sunset_face.c
@@ -339,9 +339,6 @@ bool sunrise_sunset_face_loop(movement_event_t event, movement_settings_t *setti
_sunrise_sunset_face_update_settings_display(event, state);
}
break;
- case EVENT_MODE_BUTTON_UP:
- movement_move_to_next_face();
- break;
case EVENT_LIGHT_BUTTON_DOWN:
if (state->page) {
state->active_digit++;
@@ -360,8 +357,6 @@ bool sunrise_sunset_face_loop(movement_event_t event, movement_settings_t *setti
_sunrise_sunset_face_update(settings, state);
}
break;
- case EVENT_LIGHT_BUTTON_UP:
- break;
case EVENT_ALARM_BUTTON_UP:
if (state->page) {
_sunrise_sunset_face_advance_digit(state);
@@ -393,7 +388,7 @@ bool sunrise_sunset_face_loop(movement_event_t event, movement_settings_t *setti
}
break;
default:
- break;
+ return movement_default_loop_handler(event, settings);
}
return true;
diff --git a/movement/watch_faces/complication/tachymeter_face.c b/movement/watch_faces/complication/tachymeter_face.c
index 41ff8eca..2b0a67cd 100644
--- a/movement/watch_faces/complication/tachymeter_face.c
+++ b/movement/watch_faces/complication/tachymeter_face.c
@@ -138,9 +138,6 @@ bool tachymeter_face_loop(movement_event_t event, movement_settings_t *settings,
state->animation_state = (state->animation_state + 1) % 6;
}
break;
- case EVENT_MODE_BUTTON_UP:
- movement_move_to_next_face();
- break;
case EVENT_LIGHT_BUTTON_UP:
if (state->editing){
// Go to next digit
@@ -254,6 +251,7 @@ bool tachymeter_face_loop(movement_event_t event, movement_settings_t *settings,
// watch_start_tick_animation(500);
break;
default:
+ movement_default_loop_handler(event, settings);
break;
}
// return true if the watch can enter standby mode. If you are PWM'ing an LED or buzzing the buzzer here,
diff --git a/movement/watch_faces/complication/tally_face.c b/movement/watch_faces/complication/tally_face.c
index 86e97ab0..896a54ff 100644
--- a/movement/watch_faces/complication/tally_face.c
+++ b/movement/watch_faces/complication/tally_face.c
@@ -46,12 +46,6 @@ bool tally_face_loop(movement_event_t event, movement_settings_t *settings, void
tally_state_t *state = (tally_state_t *)context;
switch (event.event_type) {
- case EVENT_MODE_BUTTON_UP:
- movement_move_to_next_face();
- break;
- case EVENT_LIGHT_BUTTON_DOWN:
- movement_illuminate_led();
- break;
case EVENT_ALARM_BUTTON_UP:
// increment tally index
state->tally_idx++;
@@ -79,6 +73,7 @@ bool tally_face_loop(movement_event_t event, movement_settings_t *settings, void
// ignore timeout
break;
default:
+ movement_default_loop_handler(event, settings);
break;
}
diff --git a/movement/watch_faces/complication/tarot_face.c b/movement/watch_faces/complication/tarot_face.c
index 39feaf15..403a92df 100644
--- a/movement/watch_faces/complication/tarot_face.c
+++ b/movement/watch_faces/complication/tarot_face.c
@@ -248,9 +248,6 @@ bool tarot_face_loop(movement_event_t event, movement_settings_t *settings, void
display_animation(state);
}
break;
- case EVENT_MODE_BUTTON_UP:
- movement_move_to_next_face();
- break;
case EVENT_LIGHT_BUTTON_UP:
if (state->drawn_cards[0] == 0xff) {
// deck is inited; cycle through # cards to draw
@@ -287,11 +284,8 @@ bool tarot_face_loop(movement_event_t event, movement_settings_t *settings, void
case EVENT_LOW_ENERGY_UPDATE:
watch_display_string("SLEEP ", 4);
break;
- case EVENT_MODE_LONG_PRESS:
- // since we ignore timeouts, provide a convenient way to jump back to the start
- movement_move_to_face(0);
- break;
default:
+ movement_default_loop_handler(event, settings);
break;
}
diff --git a/movement/watch_faces/complication/tempchart_face.c b/movement/watch_faces/complication/tempchart_face.c
index f2bb50ad..53b027d9 100644
--- a/movement/watch_faces/complication/tempchart_face.c
+++ b/movement/watch_faces/complication/tempchart_face.c
@@ -89,12 +89,6 @@ bool tempchart_face_loop(movement_event_t event, movement_settings_t *settings,
case EVENT_TICK:
// on activate and tick, if we are animating,
break;
- case EVENT_MODE_BUTTON_UP:
- // when the user presses 'mode', we tell movement to move to the next watch face.
- // movement will call our resign function, clear the screen, and transfer control
- // to the next watch face in the list.
- movement_move_to_next_face();
- break;
case EVENT_LOW_ENERGY_UPDATE:
// This low energy mode update occurs once a minute, if the watch face is in the
// foreground when Movement enters low energy mode. We have the option of supporting
@@ -133,6 +127,7 @@ bool tempchart_face_loop(movement_event_t event, movement_settings_t *settings,
break;
default:
+ movement_default_loop_handler(event, settings);
break;
}
diff --git a/movement/watch_faces/complication/tomato_face.c b/movement/watch_faces/complication/tomato_face.c
index ed5554f2..f96f52e2 100644
--- a/movement/watch_faces/complication/tomato_face.c
+++ b/movement/watch_faces/complication/tomato_face.c
@@ -142,9 +142,6 @@ bool tomato_face_loop(movement_event_t event, movement_settings_t *settings, voi
}
tomato_draw(state);
break;
- case EVENT_MODE_BUTTON_UP:
- movement_move_to_next_face();
- break;
case EVENT_LIGHT_BUTTON_UP:
movement_illuminate_led();
if (state->mode == tomato_ready) {
@@ -179,6 +176,7 @@ bool tomato_face_loop(movement_event_t event, movement_settings_t *settings, voi
movement_move_to_face(0);
break;
default:
+ movement_default_loop_handler(event, settings);
break;
}
diff --git a/movement/watch_faces/complication/totp_face.c b/movement/watch_faces/complication/totp_face.c
index b6d3b6a7..844475d4 100644
--- a/movement/watch_faces/complication/totp_face.c
+++ b/movement/watch_faces/complication/totp_face.c
@@ -79,12 +79,6 @@ bool totp_face_loop(movement_event_t event, movement_settings_t *settings, void
watch_display_string(buf, 0);
break;
- case EVENT_MODE_BUTTON_UP:
- movement_move_to_next_face();
- break;
- case EVENT_LIGHT_BUTTON_DOWN:
- movement_illuminate_led();
- break;
case EVENT_TIMEOUT:
movement_move_to_face(0);
break;
@@ -101,7 +95,9 @@ bool totp_face_loop(movement_event_t event, movement_settings_t *settings, void
break;
case EVENT_ALARM_BUTTON_DOWN:
case EVENT_ALARM_LONG_PRESS:
+ break;
default:
+ movement_default_loop_handler(event, settings);
break;
}
diff --git a/movement/watch_faces/complication/totp_face_lfs.c b/movement/watch_faces/complication/totp_face_lfs.c
index e16bbe06..d52d8629 100644
--- a/movement/watch_faces/complication/totp_face_lfs.c
+++ b/movement/watch_faces/complication/totp_face_lfs.c
@@ -242,12 +242,6 @@ bool totp_face_lfs_loop(movement_event_t event, movement_settings_t *settings, v
case EVENT_ACTIVATE:
totp_face_display(totp_state);
break;
- case EVENT_MODE_BUTTON_UP:
- movement_move_to_next_face();
- break;
- case EVENT_LIGHT_BUTTON_DOWN:
- movement_illuminate_led();
- break;
case EVENT_TIMEOUT:
movement_move_to_face(0);
break;
@@ -257,7 +251,9 @@ bool totp_face_lfs_loop(movement_event_t event, movement_settings_t *settings, v
break;
case EVENT_ALARM_BUTTON_DOWN:
case EVENT_ALARM_LONG_PRESS:
+ break;
default:
+ movement_default_loop_handler(event, settings);
break;
}
diff --git a/movement/watch_faces/complication/wake_face.c b/movement/watch_faces/complication/wake_face.c
index 4c265c75..c94b916b 100644
--- a/movement/watch_faces/complication/wake_face.c
+++ b/movement/watch_faces/complication/wake_face.c
@@ -144,16 +144,15 @@ bool wake_face_loop(movement_event_t event, movement_settings_t *settings, void
movement_play_alarm();
// 2022-07-23: Thx @joeycastillo for the dedicated “alarm” signal
break;
- case EVENT_MODE_BUTTON_UP:
- movement_move_to_next_face();
- break;
case EVENT_TIMEOUT:
movement_move_to_face(0);
break;
case EVENT_LOW_ENERGY_UPDATE:
+ break;
default:
- break;
+ movement_default_loop_handler(event, settings);
+ break;
}
return true;
-} \ No newline at end of file
+}