diff options
| author | Selene ToyKeeper | 2023-04-29 01:45:00 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2023-04-29 01:45:00 -0600 |
| commit | 0c88040fa1c2f3ffd5f6b6f6f5b12f5bd2193b06 (patch) | |
| tree | 9255ba4507ec415e2f8575e3e9e175d5c87a556b /hwdef-noctigon-kr4.c | |
| parent | missed this file on previous commit (diff) | |
| download | anduril-0c88040fa1c2f3ffd5f6b6f6f5b12f5bd2193b06.tar.gz anduril-0c88040fa1c2f3ffd5f6b6f6f5b12f5bd2193b06.tar.bz2 anduril-0c88040fa1c2f3ffd5f6b6f6f5b12f5bd2193b06.zip | |
KR4: ramp can use 8 bits, since values never go over 255
also, don't blink at top of linear range
Diffstat (limited to '')
| -rw-r--r-- | hwdef-noctigon-kr4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hwdef-noctigon-kr4.c b/hwdef-noctigon-kr4.c index bcb98fc..5813a9b 100644 --- a/hwdef-noctigon-kr4.c +++ b/hwdef-noctigon-kr4.c @@ -22,7 +22,7 @@ void set_level_main(uint8_t level) { PWM_DATATYPE ch1_pwm = PWM_GET(pwm1_levels, level); PWM_DATATYPE ch2_pwm = PWM_GET(pwm2_levels, level); // pulse frequency modulation, a.k.a. dynamic PWM - uint16_t top = PWM_GET(pwm_tops, level); + uint16_t top = PWM_GET16(pwm_tops, level); CH1_PWM = ch1_pwm; CH2_PWM = ch2_pwm; |
