更改限幅
This commit is contained in:
@@ -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, 980);
|
||||
bpwm_duty_rs = clip_s32(bpwm_duty_rs, 500, 980);
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user