diff options
| author | Selene ToyKeeper | 2023-05-02 23:44:22 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2023-05-02 23:44:22 -0600 |
| commit | 00dbf2b76cdbad2dbf2fd3b960bcb09d77f932d1 (patch) | |
| tree | 0988a942a7dbec3eaad6724f2f4a2ca6c4ada5c8 /spaghetti-monster/fsm-ramping.h | |
| parent | added Wurkkos FC13 and TS11 (diff) | |
| download | anduril-00dbf2b76cdbad2dbf2fd3b960bcb09d77f932d1.tar.gz anduril-00dbf2b76cdbad2dbf2fd3b960bcb09d77f932d1.tar.bz2 anduril-00dbf2b76cdbad2dbf2fd3b960bcb09d77f932d1.zip | |
post-off voltage display: use low brightness when torch was at moon level before,
and skip the voltage display after UI actions which didn't change the mode
(like "Off -> 7C" to change aux LED settings)
Diffstat (limited to 'spaghetti-monster/fsm-ramping.h')
| -rw-r--r-- | spaghetti-monster/fsm-ramping.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spaghetti-monster/fsm-ramping.h b/spaghetti-monster/fsm-ramping.h index 3003ecb..8d5ed27 100644 --- a/spaghetti-monster/fsm-ramping.h +++ b/spaghetti-monster/fsm-ramping.h @@ -8,6 +8,8 @@ // actual_level: last ramp level set by set_level() uint8_t actual_level = 0; +// the level used before actual +uint8_t prev_level = 0; // TODO: size-optimize the case with only 1 channel mode // (the arrays and stuff shouldn't be needed) |
