summaryrefslogtreecommitdiffstats
path: root/movement/movement.c
diff options
context:
space:
mode:
authorAlex Maestas <git@se30.xyz>2023-12-16 22:23:32 +0000
committerAlex Maestas <git@se30.xyz>2023-12-16 22:23:32 +0000
commit8eae6eabd61beb665b73a99904d6e2adc71b7b6b (patch)
tree012f539baf141d7aaa15fc1a74f48b0b06cb187d /movement/movement.c
parent0ffe19da5b92e850b78c035033f24a8c1c7bb644 (diff)
downloadSensor-Watch-8eae6eabd61beb665b73a99904d6e2adc71b7b6b.tar.gz
Sensor-Watch-8eae6eabd61beb665b73a99904d6e2adc71b7b6b.tar.bz2
Sensor-Watch-8eae6eabd61beb665b73a99904d6e2adc71b7b6b.zip
clean up trailing whitespace in movement.c
Diffstat (limited to 'movement/movement.c')
-rw-r--r--movement/movement.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/movement/movement.c b/movement/movement.c
index d0b5677b..cdae9ca7 100644
--- a/movement/movement.c
+++ b/movement/movement.c
@@ -645,13 +645,13 @@ void cb_fast_tick(void) {
// Notice: is it possible that two or more buttons have an identical timestamp? In this case
// only one of these buttons would receive the long press event. Don't bother for now...
if (movement_state.light_down_timestamp > 0)
- if (movement_state.fast_ticks - movement_state.light_down_timestamp == MOVEMENT_LONG_PRESS_TICKS + 1)
+ if (movement_state.fast_ticks - movement_state.light_down_timestamp == MOVEMENT_LONG_PRESS_TICKS + 1)
event.event_type = EVENT_LIGHT_LONG_PRESS;
if (movement_state.mode_down_timestamp > 0)
- if (movement_state.fast_ticks - movement_state.mode_down_timestamp == MOVEMENT_LONG_PRESS_TICKS + 1)
+ if (movement_state.fast_ticks - movement_state.mode_down_timestamp == MOVEMENT_LONG_PRESS_TICKS + 1)
event.event_type = EVENT_MODE_LONG_PRESS;
if (movement_state.alarm_down_timestamp > 0)
- if (movement_state.fast_ticks - movement_state.alarm_down_timestamp == MOVEMENT_LONG_PRESS_TICKS + 1)
+ if (movement_state.fast_ticks - movement_state.alarm_down_timestamp == MOVEMENT_LONG_PRESS_TICKS + 1)
event.event_type = EVENT_ALARM_LONG_PRESS;
// this is just a fail-safe; fast tick should be disabled as soon as the button is up, the LED times out, and/or the alarm finishes.
// but if for whatever reason it isn't, this forces the fast tick off after 20 seconds.