fix LED turning off on face changes
This commit is contained in:
parent
4d530ab29f
commit
7757489ce7
@ -263,7 +263,6 @@ void advanced_alarm_face_resign(void *context) {
|
||||
alarm_state_t *state = (alarm_state_t *)context;
|
||||
state->is_setting = false;
|
||||
_alarm_update_alarm_enabled(state);
|
||||
watch_set_led_off();
|
||||
state->alarm_quick_ticks = false;
|
||||
_wait_ticks = -1;
|
||||
movement_request_tick_frequency(1);
|
||||
|
||||
@ -331,6 +331,5 @@ bool simon_face_loop(movement_event_t event,
|
||||
|
||||
void simon_face_resign(void *context) {
|
||||
(void)context;
|
||||
watch_set_led_off();
|
||||
watch_set_buzzer_off();
|
||||
}
|
||||
|
||||
@ -187,6 +187,5 @@ bool set_time_face_loop(movement_event_t event, void *context) {
|
||||
|
||||
void set_time_face_resign(void *context) {
|
||||
(void) context;
|
||||
watch_set_led_off();
|
||||
movement_store_settings();
|
||||
}
|
||||
|
||||
@ -319,10 +319,6 @@ bool settings_face_loop(movement_event_t event, void *context) {
|
||||
watch_clear_display();
|
||||
state->settings_screens[state->current_page].display(event.subsecond);
|
||||
break;
|
||||
case EVENT_MODE_BUTTON_UP:
|
||||
movement_force_led_off();
|
||||
movement_move_to_next_face();
|
||||
return false;
|
||||
case EVENT_ALARM_BUTTON_UP:
|
||||
state->settings_screens[state->current_page].advance();
|
||||
break;
|
||||
@ -341,13 +337,11 @@ bool settings_face_loop(movement_event_t event, void *context) {
|
||||
color.blue | color.blue << 4);
|
||||
return false;
|
||||
} else {
|
||||
movement_force_led_off();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
void settings_face_resign(void *context) {
|
||||
(void) context;
|
||||
movement_force_led_off();
|
||||
movement_store_settings();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user