clean up trailing whitespace in movement.c
This commit is contained in:
parent
0ffe19da5b
commit
8eae6eabd6
@ -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
|
// 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...
|
// 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.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;
|
event.event_type = EVENT_LIGHT_LONG_PRESS;
|
||||||
if (movement_state.mode_down_timestamp > 0)
|
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;
|
event.event_type = EVENT_MODE_LONG_PRESS;
|
||||||
if (movement_state.alarm_down_timestamp > 0)
|
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;
|
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.
|
// 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.
|
// but if for whatever reason it isn't, this forces the fast tick off after 20 seconds.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user