From 0c88040fa1c2f3ffd5f6b6f6f5b12f5bd2193b06 Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Sat, 29 Apr 2023 01:45:00 -0600 Subject: KR4: ramp can use 8 bits, since values never go over 255 also, don't blink at top of linear range --- hwdef-noctigon-kr4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hwdef-noctigon-kr4.c') 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; -- cgit v1.2.3