From 83f13f3901969d85de14f05497fde508177b3436 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=95=E6=98=8E=E6=B1=9F?= <246462502@qq.com> Date: Sun, 18 Aug 2024 11:03:15 +0800 Subject: [PATCH] fix:ce mian max 1000->999 --- app/by_fan_control.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/by_fan_control.c b/app/by_fan_control.c index d9c9bd6..64a5c60 100644 --- a/app/by_fan_control.c +++ b/app/by_fan_control.c @@ -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) { - bpwm_duty_ls = clip_s32(bpwm_duty_ls, 500, 1000); - bpwm_duty_rs = clip_s32(bpwm_duty_rs, 500, 1000); + bpwm_duty_ls = clip_s32(bpwm_duty_ls, 500, 999); + bpwm_duty_rs = clip_s32(bpwm_duty_rs, 500, 999); bpwm_duty_lb = clip_s32(bpwm_duty_lb, 2500, 6000); bpwm_duty_rb = clip_s32(bpwm_duty_rb, 2500, 6000); pwm_set_duty(FAN_LS_PWM_PIN, bpwm_duty_ls);