aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSelene ToyKeeper2017-08-27 22:41:37 -0600
committerSelene ToyKeeper2017-08-27 22:41:37 -0600
commit98380adfd4c1f9a5e12d7d416cc14b909284014b (patch)
tree8c7cc70b3ed16e355f60abb69dd3f0488fb0e073
parentUse different speed values for party and tactical strobes. (diff)
downloadanduril-98380adfd4c1f9a5e12d7d416cc14b909284014b.tar.gz
anduril-98380adfd4c1f9a5e12d7d416cc14b909284014b.tar.bz2
anduril-98380adfd4c1f9a5e12d7d416cc14b909284014b.zip
Fixed a bug where sometimes the light wouldn't respond for a second or so after connecting power.
(spurious events were detected at boot, and previously had to time out before it would respond)
-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 1a0c425..ae63126 100644
--- a/spaghetti-monster/fsm-main.c
+++ b/spaghetti-monster/fsm-main.c
@@ -88,6 +88,10 @@ int main() {
// fallback for handling a few things
push_state(default_state, 0);
+ // in case any spurious button presses were detected at boot
+ delay_ms(1);
+ empty_event_sequence();
+
// call recipe's setup
setup();