diff options
| author | Selene ToyKeeper | 2024-03-29 07:54:24 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2024-03-29 07:54:24 -0600 |
| commit | cc228bd519d95a24a4ca17f491885f5539b6630b (patch) | |
| tree | d93ba904a0b48019c206185799a4382f71bb602d | |
| parent | Merge branch 'pr52-SiteRelEnby-manual-actions' into trunk (diff) | |
| download | anduril-cc228bd519d95a24a4ca17f491885f5539b6630b.tar.gz anduril-cc228bd519d95a24a4ca17f491885f5539b6630b.tar.bz2 anduril-cc228bd519d95a24a4ca17f491885f5539b6630b.zip | |
use smooth steps in lockout mode, if enabled
Based on [SammysHP's patch](https://github.com/ToyKeeper/anduril/pull/18),
but only for lockout mode, not tactical.
Diffstat (limited to '')
| -rw-r--r-- | ui/anduril/lockout-mode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/anduril/lockout-mode.c b/ui/anduril/lockout-mode.c index 6f85ca9..c3f82ea 100644 --- a/ui/anduril/lockout-mode.c +++ b/ui/anduril/lockout-mode.c @@ -26,11 +26,11 @@ uint8_t lockout_state(Event event, uint16_t arg) { if (cfg.manual_memory) lvl = cfg.manual_memory; #endif } - set_level(lvl); + off_state_set_level(lvl); } // button was released else if ((event & (B_CLICK | B_PRESS)) == (B_CLICK)) { - set_level(0); + off_state_set_level(0); } #endif // ifdef USE_MOON_DURING_LOCKOUT_MODE |
