Fix Fan 0 responding to all fan speeds (#13444)

This commit is contained in:
Sam Lane
2019-03-24 04:00:31 +00:00
committed by Scott Lahteine
parent 5eeffab5e5
commit a8fa275dc6
2 changed files with 3 additions and 3 deletions

View File

@ -2379,7 +2379,7 @@ void Temperature::isr() {
#if ENABLED(FAN_SOFT_PWM)
#define _FAN_PWM(N) do{ \
soft_pwm_count_fan[N] = (soft_pwm_count_fan[N] & pwm_mask) + (soft_pwm_amount_fan[N] >> 1); \
WRITE_FAN(soft_pwm_count_fan[N] > pwm_mask ? HIGH : LOW); \
WRITE_FAN_N(N, soft_pwm_count_fan[N] > pwm_mask ? HIGH : LOW); \
}while(0)
#if HAS_FAN0
_FAN_PWM(0);