From 98380adfd4c1f9a5e12d7d416cc14b909284014b Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Sun, 27 Aug 2017 22:41:37 -0600 Subject: 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) --- spaghetti-monster/fsm-main.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'spaghetti-monster') 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(); -- cgit v1.2.3