diff options
| author | Selene ToyKeeper | 2017-09-29 17:37:16 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2017-09-29 17:37:16 -0600 |
| commit | 6affa025b829b2d7b212fdf42f6d85aac7a00367 (patch) | |
| tree | e88630fe6d4119012312d15e2b72de7493549398 /spaghetti-monster | |
| parent | Added option to start at memorized level, for momentary use on dual-switch li... (diff) | |
| download | anduril-6affa025b829b2d7b212fdf42f6d85aac7a00367.tar.gz anduril-6affa025b829b2d7b212fdf42f6d85aac7a00367.tar.bz2 anduril-6affa025b829b2d7b212fdf42f6d85aac7a00367.zip | |
Made dual-switch startup optionally go to moon if e-switch is held.
Diffstat (limited to 'spaghetti-monster')
| -rw-r--r-- | spaghetti-monster/anduril/anduril.c | 7 |
1 files changed, 6 insertions, 1 deletions
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 |
