mirror of
https://github.com/firewalkwithm3/Sensor-Watch.git
synced 2024-11-22 19:20:30 +08:00
respect countdown length when repeating
This commit is contained in:
parent
b06357a193
commit
f5be9755b6
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue