aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster/fsm-main.c
diff options
context:
space:
mode:
authorSelene ToyKeeper2017-08-30 23:07:55 -0600
committerSelene ToyKeeper2017-08-30 23:07:55 -0600
commit15d5b2cbe807029c7493691a1877a1898d100455 (patch)
treee13b8410d5d694f5256bbb3c62c534a9262c3745 /spaghetti-monster/fsm-main.c
parentUpdated anduril.txt to match current code. (diff)
downloadanduril-15d5b2cbe807029c7493691a1877a1898d100455.tar.gz
anduril-15d5b2cbe807029c7493691a1877a1898d100455.tar.bz2
anduril-15d5b2cbe807029c7493691a1877a1898d100455.zip
Replaced FSM_*_LAYOUT with FSM_*_DRIVER because I think it makes more sense.
Made momentary.c compile again. Updated fsm-main to use whichever delay function is available.
Diffstat (limited to '')
-rw-r--r--spaghetti-monster/fsm-main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/spaghetti-monster/fsm-main.c b/spaghetti-monster/fsm-main.c
index ae63126..9505322 100644
--- a/spaghetti-monster/fsm-main.c
+++ b/spaghetti-monster/fsm-main.c
@@ -89,7 +89,11 @@ int main() {
push_state(default_state, 0);
// in case any spurious button presses were detected at boot
+ #ifdef USE_DELAY_MS
delay_ms(1);
+ #else
+ delay_4ms(1);
+ #endif
empty_event_sequence();
// call recipe's setup