Просмотр исходного кода

Merge pull request #1285 from drf5n/PID_CI_v2

temperature.cpp: Fix typo of MAX_BED_PID to MAX_BED_POWER.
alexborro 9 лет назад
Родитель
Сommit
80b17ab573
1 измененных файлов: 2 добавлений и 2 удалений
  1. 2
    2
      Marlin/temperature.cpp

+ 2
- 2
Marlin/temperature.cpp Просмотреть файл

@@ -582,9 +582,9 @@ void manage_heater()
582 582
 		  temp_dState_bed = pid_input;
583 583
 
584 584
 		  pid_output = pTerm_bed + iTerm_bed - dTerm_bed;
585
-          	  if (pid_output > MAX_BED_PID) {
585
+          	  if (pid_output > MAX_BED_POWER) {
586 586
             	    if (pid_error_bed > 0 )  temp_iState_bed -= pid_error_bed; // conditional un-integration
587
-                    pid_output=PID_MAX;
587
+                    pid_output=PID_BED_POWER;
588 588
           	  } else if (pid_output < 0){
589 589
             	    if (pid_error_bed < 0 )  temp_iState_bed -= pid_error_bed; // conditional un-integration
590 590
                     pid_output=0;

Загрузка…
Отмена
Сохранить