Marlin: Temperature soft-PWM cleanup

This commit is contained in:
Scott Lahteine 2016-11-11 18:29:03 -06:00
parent d8724bb546
commit 499f9e04e1

View file

@ -982,9 +982,6 @@ void Temperature::init() {
#if ENABLED(FAST_PWM_FAN)
setPwmFrequency(FAN_PIN, 1); // No prescaling. Pwm frequency = F_CPU/256/8
#endif
#if ENABLED(FAN_SOFT_PWM)
soft_pwm_fan[0] = fanSpeedSoftPwm[0] >> 1;
#endif
#endif
#if HAS_FAN1
@ -992,9 +989,6 @@ void Temperature::init() {
#if ENABLED(FAST_PWM_FAN)
setPwmFrequency(FAN1_PIN, 1); // No prescaling. Pwm frequency = F_CPU/256/8
#endif
#if ENABLED(FAN_SOFT_PWM)
soft_pwm_fan[1] = fanSpeedSoftPwm[1] >> 1;
#endif
#endif
#if HAS_FAN2
@ -1002,9 +996,6 @@ void Temperature::init() {
#if ENABLED(FAST_PWM_FAN)
setPwmFrequency(FAN2_PIN, 1); // No prescaling. Pwm frequency = F_CPU/256/8
#endif
#if ENABLED(FAN_SOFT_PWM)
soft_pwm_fan[2] = fanSpeedSoftPwm[2] >> 1;
#endif
#endif
#if ENABLED(HEATER_0_USES_MAX6675)