summaryrefslogtreecommitdiffstats
path: root/movement/movement.c
diff options
context:
space:
mode:
authorJoey Castillo <joeycastillo@utexas.edu>2021-11-30 10:23:20 -0500
committerJoey Castillo <joeycastillo@utexas.edu>2021-11-30 10:23:20 -0500
commitaf27750a6d5fc946bc702531b88dc9f93ffd795c (patch)
tree17c7965cbcbf5bcd33c6f059525aab67bf3654c0 /movement/movement.c
parent0fb8afda813ffbe96072ceb09292c8ae0d490b59 (diff)
downloadSensor-Watch-af27750a6d5fc946bc702531b88dc9f93ffd795c.tar.gz
Sensor-Watch-af27750a6d5fc946bc702531b88dc9f93ffd795c.tar.bz2
Sensor-Watch-af27750a6d5fc946bc702531b88dc9f93ffd795c.zip
movement: fix yesterday's bug that was keeping us awake
Diffstat (limited to 'movement/movement.c')
-rw-r--r--movement/movement.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/movement/movement.c b/movement/movement.c
index 71707bfa..2ac31a96 100644
--- a/movement/movement.c
+++ b/movement/movement.c
@@ -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) {