summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWesley Aptekar-Cassels <me@wesleyac.com>2023-11-18 23:12:51 -0500
committerGitHub <noreply@github.com>2023-11-18 23:12:51 -0500
commit3b9fd8b0e9934556b64bdd7e05dc7cacdb369ac9 (patch)
tree8d8d637e4d97ea5121ec058f3b5b5c5a77cb5514
parent2b7162c2bed7ddfd926efe975fb24f2230fa2993 (diff)
parentad846f50602d3824097e9fbbbac4dcd88d9a8a3f (diff)
downloadSensor-Watch-3b9fd8b0e9934556b64bdd7e05dc7cacdb369ac9.tar.gz
Sensor-Watch-3b9fd8b0e9934556b64bdd7e05dc7cacdb369ac9.tar.bz2
Sensor-Watch-3b9fd8b0e9934556b64bdd7e05dc7cacdb369ac9.zip
Merge pull request #302 from LtKeks/Sensor-Watch-bugfix-timer_face-datatype
timer_face - Possibility to set seconds as default values
-rw-r--r--movement/watch_faces/complication/timer_face.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/movement/watch_faces/complication/timer_face.c b/movement/watch_faces/complication/timer_face.c
index 70f250a5..8bf7cf99 100644
--- a/movement/watch_faces/complication/timer_face.c
+++ b/movement/watch_faces/complication/timer_face.c
@@ -30,7 +30,7 @@
#include "watch.h"
#include "watch_utility.h"
-static const uint16_t _default_timer_values[] = {0x200, 0x500, 0xA00, 0x1400, 0x2D02}; // default timers: 2 min, 5 min, 10 min, 20 min, 2 h 45 min
+static const uint32_t _default_timer_values[] = {0x000200, 0x000500, 0x000A00, 0x001400, 0x002D02}; // default timers: 2 min, 5 min, 10 min, 20 min, 2 h 45 min
// sound sequence for a single beeping sequence
static const int8_t _sound_seq_beep[] = {BUZZER_NOTE_C8, 3, BUZZER_NOTE_REST, 3, -2, 2, BUZZER_NOTE_C8, 5, BUZZER_NOTE_REST, 25, 0};
@@ -199,7 +199,7 @@ void timer_face_setup(movement_settings_t *settings, uint8_t watch_face_index, v
timer_state_t *state = (timer_state_t *)*context_ptr;
memset(*context_ptr, 0, sizeof(timer_state_t));
state->watch_face_index = watch_face_index;
- for (uint8_t i = 0; i < sizeof(_default_timer_values) / sizeof(uint16_t); i++) {
+ for (uint8_t i = 0; i < sizeof(_default_timer_values) / sizeof(uint32_t); i++) {
state->timers[i].value = _default_timer_values[i];
}
}