瀏覽代碼

Marlin: Temperature soft-PWM cleanup

Scott Lahteine 8 年之前
父節點
當前提交
499f9e04e1
共有 1 個檔案被更改,包括 0 行新增9 行删除
  1. 0
    9
      Marlin/temperature.cpp

+ 0
- 9
Marlin/temperature.cpp 查看文件

@@ -982,9 +982,6 @@ void Temperature::init() {
982 982
     #if ENABLED(FAST_PWM_FAN)
983 983
       setPwmFrequency(FAN_PIN, 1); // No prescaling. Pwm frequency = F_CPU/256/8
984 984
     #endif
985
-    #if ENABLED(FAN_SOFT_PWM)
986
-      soft_pwm_fan[0] = fanSpeedSoftPwm[0] >> 1;
987
-    #endif
988 985
   #endif
989 986
 
990 987
   #if HAS_FAN1
@@ -992,9 +989,6 @@ void Temperature::init() {
992 989
     #if ENABLED(FAST_PWM_FAN)
993 990
       setPwmFrequency(FAN1_PIN, 1); // No prescaling. Pwm frequency = F_CPU/256/8
994 991
     #endif
995
-    #if ENABLED(FAN_SOFT_PWM)
996
-      soft_pwm_fan[1] = fanSpeedSoftPwm[1] >> 1;
997
-    #endif
998 992
   #endif
999 993
 
1000 994
   #if HAS_FAN2
@@ -1002,9 +996,6 @@ void Temperature::init() {
1002 996
     #if ENABLED(FAST_PWM_FAN)
1003 997
       setPwmFrequency(FAN2_PIN, 1); // No prescaling. Pwm frequency = F_CPU/256/8
1004 998
     #endif
1005
-    #if ENABLED(FAN_SOFT_PWM)
1006
-      soft_pwm_fan[2] = fanSpeedSoftPwm[2] >> 1;
1007
-    #endif
1008 999
   #endif
1009 1000
 
1010 1001
   #if ENABLED(HEATER_0_USES_MAX6675)

Loading…
取消
儲存