Преглед изворни кода

Fix define used when PID is off (#13119)

Replaced `PID_MAX` with `BANG_MAX` since it should be the correct define to be used when PID is not enabled.
Giuliano Zaro пре 6 година
родитељ
комит
773fa5c40f
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1
    1
      Marlin/src/module/temperature.cpp

+ 1
- 1
Marlin/src/module/temperature.cpp Прегледај датотеку

803
         pid_output = 0;
803
         pid_output = 0;
804
       else
804
       else
805
     #endif
805
     #endif
806
-    pid_output = (current_temperature[HOTEND_INDEX] < target_temperature[HOTEND_INDEX]) ? PID_MAX : 0;
806
+    pid_output = (current_temperature[HOTEND_INDEX] < target_temperature[HOTEND_INDEX]) ? BANG_MAX : 0;
807
   #endif
807
   #endif
808
 
808
 
809
   return pid_output;
809
   return pid_output;

Loading…
Откажи
Сачувај