From baf32e54429753c560be45b8cd279a53d4231ce6 Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Thu, 30 Jul 2020 18:22:06 -0600 Subject: fixed bug: 4H from lockout to ramp would immediately activate the sunset timer --- spaghetti-monster/anduril/lockout-mode.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'spaghetti-monster') diff --git a/spaghetti-monster/anduril/lockout-mode.c b/spaghetti-monster/anduril/lockout-mode.c index 14739fe..40bb6cf 100644 --- a/spaghetti-monster/anduril/lockout-mode.c +++ b/spaghetti-monster/anduril/lockout-mode.c @@ -99,6 +99,9 @@ uint8_t lockout_state(Event event, uint16_t arg) { // 4 clicks, but hold last: exit and start at floor else if (event == EV_click4_hold) { blink_confirm(1); + // reset button sequence to avoid activating anything in ramp mode + current_event = 0; + // ... and back to ramp mode set_state(steady_state, 1); return MISCHIEF_MANAGED; } -- cgit v1.2.3