|
@@ -584,7 +584,7 @@ void manage_heater()
|
584
|
584
|
pid_output = pTerm_bed + iTerm_bed - dTerm_bed;
|
585
|
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_BED_POWER;
|
|
587
|
+ pid_output=MAX_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;
|