瀏覽代碼

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,7 +803,7 @@ float Temperature::get_pid_output(const int8_t e) {
803 803
         pid_output = 0;
804 804
       else
805 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 807
   #endif
808 808
 
809 809
   return pid_output;

Loading…
取消
儲存