diff options
| author | Selene ToyKeeper | 2019-11-19 00:06:41 -0700 |
|---|---|---|
| committer | Selene ToyKeeper | 2019-11-19 00:06:41 -0700 |
| commit | ed6a02bc0ba93b9ef3139a545225b611fc4c99dc (patch) | |
| tree | b5c32326307adf0c5e169b18d45670afd67121a0 /spaghetti-monster/fsm-pcint.c | |
| parent | fixed issue where button-press-during-sleep could occasionally cause a reboot (diff) | |
| download | anduril-ed6a02bc0ba93b9ef3139a545225b611fc4c99dc.tar.gz anduril-ed6a02bc0ba93b9ef3139a545225b611fc4c99dc.tar.bz2 anduril-ed6a02bc0ba93b9ef3139a545225b611fc4c99dc.zip | |
cleaned up WDT code a bit, reduced total size,
fixed bug where ticks_since_last could have the wrong value sometimes,
reduced power use in sleep mode very slightly by skipping button-handling code while asleep
Diffstat (limited to 'spaghetti-monster/fsm-pcint.c')
| -rw-r--r-- | spaghetti-monster/fsm-pcint.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/spaghetti-monster/fsm-pcint.c b/spaghetti-monster/fsm-pcint.c index a4a496a..1ba1c15 100644 --- a/spaghetti-monster/fsm-pcint.c +++ b/spaghetti-monster/fsm-pcint.c @@ -97,8 +97,7 @@ void PCINT_inner(uint8_t pressed) { pushed = push_event(B_RELEASE); } - // check if sequence matches any defined sequences - // if so, send event to current state callback + // send event to the current state callback if (pushed) { button_last_state = pressed; emit_current_event(0); |
