diff options
author | Max Zettlmeißl <max@zettlmeissl.de> | 2024-02-07 20:02:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-07 14:02:41 -0500 |
commit | af18673e1aa53091880d829a6fa4d7e23a6b4381 (patch) | |
tree | b1edde862d3b93d362090293c7c4f6cbadde9a8c | |
parent | 11de5936c51afe38cef28ecad4b038f35bd622e1 (diff) | |
download | Sensor-Watch-af18673e1aa53091880d829a6fa4d7e23a6b4381.tar.gz Sensor-Watch-af18673e1aa53091880d829a6fa4d7e23a6b4381.tar.bz2 Sensor-Watch-af18673e1aa53091880d829a6fa4d7e23a6b4381.zip |
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.
-rw-r--r-- | movement/movement.c | 4 | ||||
-rw-r--r-- | 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 3bb3b895..d780a2f3 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 b0e328b3..c96e8d1f 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); |