movement: reset tick to 1 Hz between watch faces (fixes #36)
This commit is contained in:
@@ -208,5 +208,4 @@ bool world_clock_face_loop(movement_event_t event, movement_settings_t *settings
|
||||
void world_clock_face_resign(movement_settings_t *settings, void *context) {
|
||||
(void) settings;
|
||||
(void) context;
|
||||
movement_request_tick_frequency(1);
|
||||
}
|
||||
|
||||
@@ -76,7 +76,6 @@ bool beats_face_loop(movement_event_t event, movement_settings_t *settings, void
|
||||
void beats_face_resign(movement_settings_t *settings, void *context) {
|
||||
(void) settings;
|
||||
(void) context;
|
||||
movement_request_tick_frequency(1);
|
||||
}
|
||||
|
||||
uint32_t clock2beats(uint32_t hours, uint32_t minutes, uint32_t seconds, uint32_t subseconds, int16_t utc_offset) {
|
||||
|
||||
@@ -219,6 +219,8 @@ bool countdown_face_loop(movement_event_t event, movement_settings_t *settings,
|
||||
|
||||
void countdown_face_resign(movement_settings_t *settings, void *context) {
|
||||
(void) settings;
|
||||
(void) context;
|
||||
movement_request_tick_frequency(1);
|
||||
countdown_state_t *state = (countdown_state_t *)context;
|
||||
if (state->mode == cd_setting) {
|
||||
state->mode = cd_waiting;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -187,8 +187,6 @@ void day_one_face_resign(movement_settings_t *settings, void *context) {
|
||||
(void) settings;
|
||||
day_one_state_t *state = (day_one_state_t *)context;
|
||||
|
||||
movement_request_tick_frequency(1);
|
||||
|
||||
// if the user changed their birth date, store it to the birth date register
|
||||
if (state->birthday_changed) {
|
||||
day_one_state_t *state = (day_one_state_t *)context;
|
||||
|
||||
@@ -111,5 +111,4 @@ bool pulsometer_face_loop(movement_event_t event, movement_settings_t *settings,
|
||||
void pulsometer_face_resign(movement_settings_t *settings, void *context) {
|
||||
(void) settings;
|
||||
(void) context;
|
||||
movement_request_tick_frequency(1);
|
||||
}
|
||||
|
||||
@@ -144,6 +144,4 @@ bool sunrise_sunset_face_loop(movement_event_t event, movement_settings_t *setti
|
||||
void sunrise_sunset_face_resign(movement_settings_t *settings, void *context) {
|
||||
(void) settings;
|
||||
(void) context;
|
||||
|
||||
movement_request_tick_frequency(1);
|
||||
}
|
||||
|
||||
@@ -72,5 +72,4 @@ bool character_set_face_loop(movement_event_t event, movement_settings_t *settin
|
||||
void character_set_face_resign(movement_settings_t *settings, void *context) {
|
||||
(void) settings;
|
||||
(void) context;
|
||||
movement_request_tick_frequency(1);
|
||||
}
|
||||
|
||||
@@ -138,5 +138,4 @@ bool demo_face_loop(movement_event_t event, movement_settings_t *settings, void
|
||||
void demo_face_resign(movement_settings_t *settings, void *context) {
|
||||
(void) settings;
|
||||
(void) context;
|
||||
movement_request_tick_frequency(1);
|
||||
}
|
||||
|
||||
@@ -189,6 +189,5 @@ void preferences_face_resign(movement_settings_t *settings, void *context) {
|
||||
(void) settings;
|
||||
(void) context;
|
||||
watch_set_led_off();
|
||||
movement_request_tick_frequency(1);
|
||||
watch_store_backup_data(settings->reg, 0);
|
||||
}
|
||||
|
||||
@@ -147,6 +147,5 @@ void set_time_face_resign(movement_settings_t *settings, void *context) {
|
||||
(void) settings;
|
||||
(void) context;
|
||||
watch_set_led_off();
|
||||
movement_request_tick_frequency(1);
|
||||
watch_store_backup_data(settings->reg, 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user