aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorSelene ToyKeeper2023-11-07 13:56:53 -0700
committerSelene ToyKeeper2023-11-07 13:56:53 -0700
commit794105111f86db33977edc710e791be39ee07b7a (patch)
tree4f756c0331d7622d8380ddc802e154ccad9780c1 /ui
parentMerge branch 'momentary-turbo' of github.com:SammysHP/anduril into pr-16-Samm... (diff)
downloadanduril-794105111f86db33977edc710e791be39ee07b7a.tar.gz
anduril-794105111f86db33977edc710e791be39ee07b7a.tar.bz2
anduril-794105111f86db33977edc710e791be39ee07b7a.zip
shortened unnecessarily long explanation
Diffstat (limited to 'ui')
-rw-r--r--ui/anduril/ramp-mode.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/ui/anduril/ramp-mode.c b/ui/anduril/ramp-mode.c
index bd82fbb..9e19025 100644
--- a/ui/anduril/ramp-mode.c
+++ b/ui/anduril/ramp-mode.c
@@ -468,11 +468,7 @@ uint8_t steady_state(Event event, uint16_t arg) {
#ifdef USE_MOMENTARY_MODE
// 5 clicks: shortcut to momentary mode
else if (event == EV_5clicks) {
- // Allow to use turbo in momentary mode. It is safe to overwrite
- // memorized_level because the only way to exit momentary mode is to
- // reboot the flashlight which restores memorized_level to the default
- // or EEPROM (but we don't write to EEPROM here).
- memorized_level = actual_level;
+ memorized_level = actual_level; // allow turbo in momentary mode
set_level(0);
set_state(momentary_state, 0);
return EVENT_HANDLED;