diff options
| author | Selene ToyKeeper | 2018-11-11 05:14:47 -0700 |
|---|---|---|
| committer | Selene ToyKeeper | 2018-11-11 05:14:47 -0700 |
| commit | e942fa7c47f446891e3bb0a07316d22cc32c00c2 (patch) | |
| tree | a74c2cbe1a48554f66d8ca18a0dbc1bf0d69ebdc /spaghetti-monster/fsm-pcint.c | |
| parent | calibrated Sofirn SP36 config (diff) | |
| download | anduril-e942fa7c47f446891e3bb0a07316d22cc32c00c2.tar.gz anduril-e942fa7c47f446891e3bb0a07316d22cc32c00c2.tar.bz2 anduril-e942fa7c47f446891e3bb0a07316d22cc32c00c2.zip | |
Rewrote the event system to use a single byte for each event instead of an array of actions.
Not thoroughly tested yet, not done yet, have only updated Anduril to fit, and only partially.
Diffstat (limited to 'spaghetti-monster/fsm-pcint.c')
| -rw-r--r-- | spaghetti-monster/fsm-pcint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spaghetti-monster/fsm-pcint.c b/spaghetti-monster/fsm-pcint.c index a79572d..acb627d 100644 --- a/spaghetti-monster/fsm-pcint.c +++ b/spaghetti-monster/fsm-pcint.c @@ -75,9 +75,9 @@ void PCINT_inner(uint8_t pressed) { uint8_t pushed; if (pressed) { - pushed = push_event(A_PRESS); + pushed = push_event(B_PRESS); } else { - pushed = push_event(A_RELEASE); + pushed = push_event(B_RELEASE); } // check if sequence matches any defined sequences |
