diff options
| author | Selene ToyKeeper | 2023-11-04 11:09:43 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2023-11-04 11:09:43 -0600 |
| commit | 2542d8ca11e4da69e12cb9f5eeae38a565229bb5 (patch) | |
| tree | f2c963ae0571b128b131d64003009d6042effc34 /hw/hank/noctigon-dm11/boost/hwdef.c | |
| parent | detect-mcu.sh: oops, that line of help text wasn't supposed to be executed (diff) | |
| download | anduril-2542d8ca11e4da69e12cb9f5eeae38a565229bb5.tar.gz anduril-2542d8ca11e4da69e12cb9f5eeae38a565229bb5.tar.bz2 anduril-2542d8ca11e4da69e12cb9f5eeae38a565229bb5.zip | |
@hank-*-boost: fixed flicker while holding button at moon
@hank-noctigon-kr4-boost, @hank-noctigon-k1-boost, @hank-noctigon-dm11-boost
(0216, 0253, 0273)
Diffstat (limited to '')
| -rw-r--r-- | hw/hank/noctigon-dm11/boost/hwdef.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/hank/noctigon-dm11/boost/hwdef.c b/hw/hank/noctigon-dm11/boost/hwdef.c index e601132..07f3f52 100644 --- a/hw/hank/noctigon-dm11/boost/hwdef.c +++ b/hw/hank/noctigon-dm11/boost/hwdef.c @@ -36,6 +36,8 @@ void set_level_zero() { // single set of LEDs with single power channel, boost void set_level_main(uint8_t level) { + if (level == actual_level - 1) return; // prevent flicker on no-op + PWM_DATATYPE ch1 = PWM_GET(pwm1_levels, level); // set delta-sigma soft levels |
