From af18673e1aa53091880d829a6fa4d7e23a6b4381 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20Zettlmei=C3=9Fl?= Date: Wed, 7 Feb 2024 20:02:41 +0100 Subject: [PATCH] Change inactivity deadlines: add 10 minutes and remove 2 days. (#365) I like to use the ten minute timeout on my watch and there are other people who have similar interests in a lower deadline. The two day deadline had to go to still accommodate the change within the three bit index. The default setting is still the one hour timeout. --- movement/movement.c | 4 ++-- movement/watch_faces/settings/preferences_face.c | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/movement/movement.c b/movement/movement.c index 3bb3b89..d780a2f 100644 --- a/movement/movement.c +++ b/movement/movement.c @@ -76,7 +76,7 @@ movement_state_t movement_state; void * watch_face_contexts[MOVEMENT_NUM_FACES]; watch_date_time scheduled_tasks[MOVEMENT_NUM_FACES]; -const int32_t movement_le_inactivity_deadlines[8] = {INT_MAX, 3600, 7200, 21600, 43200, 86400, 172800, 604800}; +const int32_t movement_le_inactivity_deadlines[8] = {INT_MAX, 600, 3600, 7200, 21600, 43200, 86400, 604800}; const int16_t movement_timeout_inactivity_deadlines[4] = {60, 120, 300, 1800}; movement_event_t event; @@ -354,7 +354,7 @@ void app_init(void) { movement_state.settings.bit.led_red_color = MOVEMENT_DEFAULT_RED_COLOR; movement_state.settings.bit.led_green_color = MOVEMENT_DEFAULT_GREEN_COLOR; movement_state.settings.bit.button_should_sound = true; - movement_state.settings.bit.le_interval = 1; + movement_state.settings.bit.le_interval = 2; movement_state.settings.bit.led_duration = 1; movement_state.light_ticks = -1; movement_state.alarm_ticks = -1; diff --git a/movement/watch_faces/settings/preferences_face.c b/movement/watch_faces/settings/preferences_face.c index b0e328b..c96e8d1 100644 --- a/movement/watch_faces/settings/preferences_face.c +++ b/movement/watch_faces/settings/preferences_face.c @@ -136,22 +136,22 @@ bool preferences_face_loop(movement_event_t event, movement_settings_t *settings watch_display_string(" Never", 4); break; case 1: - watch_display_string("1 hour", 4); + watch_display_string("10n&in", 4); break; case 2: - watch_display_string("2 hour", 4); + watch_display_string("1 hour", 4); break; case 3: - watch_display_string("6 hour", 4); + watch_display_string("2 hour", 4); break; case 4: - watch_display_string("12 hr", 4); + watch_display_string("6 hour", 4); break; case 5: - watch_display_string(" 1 day", 4); + watch_display_string("12 hr", 4); break; case 6: - watch_display_string(" 2 day", 4); + watch_display_string(" 1 day", 4); break; case 7: watch_display_string(" 7 day", 4);