diff options
Diffstat (limited to 'spaghetti-monster/fsm-standby.c')
| -rw-r--r-- | spaghetti-monster/fsm-standby.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spaghetti-monster/fsm-standby.c b/spaghetti-monster/fsm-standby.c index bef0533..86c5f0d 100644 --- a/spaghetti-monster/fsm-standby.c +++ b/spaghetti-monster/fsm-standby.c @@ -36,6 +36,7 @@ void sleep_until_eswitch_pressed() // make sure switch isn't currently pressed while (button_is_pressed()) {} + empty_event_sequence(); // cancel pending input on suspend PCINT_on(); // wake on e-switch event @@ -45,7 +46,8 @@ void sleep_until_eswitch_pressed() // something happened; wake up sleep_disable(); - PCINT_on(); + //PCINT_on(); // should be on already + // FIXME? if button is down, make sure a button press event is added to the current sequence ADC_on(); WDT_on(); } |
