mirror of
https://github.com/firewalkwithm3/Sensor-Watch.git
synced 2024-11-22 19:20:30 +08:00
movement: fix yesterday's bug that was keeping us awake
This commit is contained in:
parent
0fb8afda81
commit
af27750a6d
|
@ -290,7 +290,7 @@ bool app_loop() {
|
|||
|
||||
event.subsecond = 0;
|
||||
|
||||
return can_sleep && (movement_state.light_ticks == 0) && !movement_state.is_buzzing;
|
||||
return can_sleep && (movement_state.light_ticks == -1) && !movement_state.is_buzzing;
|
||||
}
|
||||
|
||||
movement_event_type_t _figure_out_button_event(bool pin_level, movement_event_type_t button_down_event_type, uint8_t *down_timestamp) {
|
||||
|
|
Loading…
Reference in a new issue