From 6affa025b829b2d7b212fdf42f6d85aac7a00367 Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Fri, 29 Sep 2017 17:37:16 -0600 Subject: Made dual-switch startup optionally go to moon if e-switch is held. --- spaghetti-monster/anduril/anduril.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/spaghetti-monster/anduril/anduril.c b/spaghetti-monster/anduril/anduril.c index 84cc27c..1fdf457 100644 --- a/spaghetti-monster/anduril/anduril.c +++ b/spaghetti-monster/anduril/anduril.c @@ -1043,7 +1043,12 @@ void setup() { // dual switch: e-switch + power clicky // power clicky acts as a momentary mode load_config(); - push_state(steady_state, memorized_level); + if (button_is_pressed()) + // hold button to go to moon + push_state(steady_state, 1); + else + // otherwise use memory + push_state(steady_state, memorized_level); #else -- cgit v1.2.3