]> git.earman.xyz Git - sensor-watch.git/commitdiff
respect countdown length when repeating
authorJoey Castillo <joeycastillo@utexas.edu>
Sun, 20 Feb 2022 02:19:15 +0000 (21:19 -0500)
committerJoey Castillo <joeycastillo@utexas.edu>
Sun, 20 Feb 2022 02:19:15 +0000 (21:19 -0500)
movement/watch_faces/sensor/accelerometer_data_acquisition_face.c

index 51733a462026453758e1077eded8d69c280ff5f1..6ef9c6db8d7556b1174016c2ffacdee6cff4dd61 100644 (file)
@@ -111,7 +111,7 @@ bool accelerometer_data_acquisition_face_loop(movement_event_t event, movement_s
                     if (state->repeat_ticks > 0) {
                         state->repeat_ticks--;
                         if (state->repeat_ticks == 0) {
-                            state->countdown_ticks = 1;
+                            state->countdown_ticks = state->countdown_length;
                             state->mode = ACCELEROMETER_DATA_ACQUISITION_MODE_COUNTDOWN;
                         }
                     }