浏览代码

temperature.cpp: Fix typo of PID_MAX to MAX_BED_POWER for the bed.

David Forrest 10 年前
父节点
当前提交
625860f086
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      Marlin/temperature.cpp

+ 1
- 1
Marlin/temperature.cpp 查看文件

568
 		  pid_output = pTerm_bed + iTerm_bed - dTerm_bed;
568
 		  pid_output = pTerm_bed + iTerm_bed - dTerm_bed;
569
           	  if (pid_output > MAX_BED_POWER) {
569
           	  if (pid_output > MAX_BED_POWER) {
570
             	    if (pid_error_bed > 0 )  temp_iState_bed -= pid_error_bed; // conditional un-integration
570
             	    if (pid_error_bed > 0 )  temp_iState_bed -= pid_error_bed; // conditional un-integration
571
-                    pid_output=PID_MAX;
571
+                    pid_output=PID_BED_POWER;
572
           	  } else if (pid_output < 0){
572
           	  } else if (pid_output < 0){
573
             	    if (pid_error_bed < 0 )  temp_iState_bed -= pid_error_bed; // conditional un-integration
573
             	    if (pid_error_bed < 0 )  temp_iState_bed -= pid_error_bed; // conditional un-integration
574
                     pid_output=0;
574
                     pid_output=0;

正在加载...
取消
保存