aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster/fsm-pcint.c
diff options
context:
space:
mode:
authorSelene ToyKeeper2018-11-11 16:20:36 -0700
committerSelene ToyKeeper2018-11-11 16:20:36 -0700
commit4328934ed1ce704a44fef3e58d1c7090fe7aaf38 (patch)
tree7f836bb7e8f6e8aabdceee3a86ac33d3f1531bac /spaghetti-monster/fsm-pcint.c
parentcalibrated Sofirn SP36 config (diff)
parentUpdated RampingIOS V3 to new event API. Applied recent changes from Anduril ... (diff)
downloadanduril-4328934ed1ce704a44fef3e58d1c7090fe7aaf38.tar.gz
anduril-4328934ed1ce704a44fef3e58d1c7090fe7aaf38.tar.bz2
anduril-4328934ed1ce704a44fef3e58d1c7090fe7aaf38.zip
merged event-rework branch; reduces ROM size by ~700 bytes and simplifies event system
Diffstat (limited to 'spaghetti-monster/fsm-pcint.c')
-rw-r--r--spaghetti-monster/fsm-pcint.c4
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