fix:ce mian max 1000->999

This commit is contained in:
2024-08-18 11:03:15 +08:00
parent 9a4caf7b7c
commit 83f13f3901

View File

@@ -70,8 +70,8 @@ void by_pwm_update_duty(uint32_t update_pwm_duty1, uint32_t update_pwm_duty2)
*/ */
void by_pwm_power_duty(int32_t bpwm_duty_ls, int32_t bpwm_duty_rs, int32_t bpwm_duty_lb, int32_t bpwm_duty_rb) void by_pwm_power_duty(int32_t bpwm_duty_ls, int32_t bpwm_duty_rs, int32_t bpwm_duty_lb, int32_t bpwm_duty_rb)
{ {
bpwm_duty_ls = clip_s32(bpwm_duty_ls, 500, 1000); bpwm_duty_ls = clip_s32(bpwm_duty_ls, 500, 999);
bpwm_duty_rs = clip_s32(bpwm_duty_rs, 500, 1000); bpwm_duty_rs = clip_s32(bpwm_duty_rs, 500, 999);
bpwm_duty_lb = clip_s32(bpwm_duty_lb, 2500, 6000); bpwm_duty_lb = clip_s32(bpwm_duty_lb, 2500, 6000);
bpwm_duty_rb = clip_s32(bpwm_duty_rb, 2500, 6000); bpwm_duty_rb = clip_s32(bpwm_duty_rb, 2500, 6000);
pwm_set_duty(FAN_LS_PWM_PIN, bpwm_duty_ls); pwm_set_duty(FAN_LS_PWM_PIN, bpwm_duty_ls);