fix LED turning off on face changes
This commit is contained in:
@@ -270,7 +270,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);
|
||||
|
||||
@@ -323,6 +323,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();
|
||||
}
|
||||
|
||||
@@ -386,10 +386,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 true;
|
||||
case EVENT_ALARM_BUTTON_UP:
|
||||
state->settings_screens[state->current_page].advance();
|
||||
break;
|
||||
@@ -408,13 +404,11 @@ bool settings_face_loop(movement_event_t event, void *context) {
|
||||
color.blue | color.blue << 4);
|
||||
return true;
|
||||
} else {
|
||||
movement_force_led_off();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
void settings_face_resign(void *context) {
|
||||
(void) context;
|
||||
movement_force_led_off();
|
||||
movement_store_settings();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user