respect countdown length when repeating

This commit is contained in:
Joey Castillo 2022-02-19 21:19:15 -05:00
parent b06357a193
commit f5be9755b6

View 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;
}
}