aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSelene ToyKeeper2020-08-31 14:07:42 -0600
committerSelene ToyKeeper2020-08-31 14:07:42 -0600
commit9012abcf4055d27ed74c168d4a04fb6bdc641379 (patch)
treea6072ff953c7ff096d7dbe0ff560fedd4ee41cc5
parentmade text manual consistent with UI reference table (diff)
downloadanduril-9012abcf4055d27ed74c168d4a04fb6bdc641379.tar.gz
anduril-9012abcf4055d27ed74c168d4a04fb6bdc641379.tar.bz2
anduril-9012abcf4055d27ed74c168d4a04fb6bdc641379.zip
made manual memory work when unlocking light
-rw-r--r--spaghetti-monster/anduril/lockout-mode.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/spaghetti-monster/anduril/lockout-mode.c b/spaghetti-monster/anduril/lockout-mode.c
index 0d4de01..e65886d 100644
--- a/spaghetti-monster/anduril/lockout-mode.c
+++ b/spaghetti-monster/anduril/lockout-mode.c
@@ -91,6 +91,11 @@ uint8_t lockout_state(Event event, uint16_t arg) {
// 4 clicks: exit and turn on
else if (event == EV_4clicks) {
blink_once();
+ #ifdef USE_MANUAL_MEMORY
+ if (manual_memory)
+ set_state(steady_state, manual_memory);
+ else
+ #endif
set_state(steady_state, memorized_level);
return MISCHIEF_MANAGED;
}