|
@@ -568,7 +568,7 @@ void manage_heater()
|
568
|
568
|
pid_output = pTerm_bed + iTerm_bed - dTerm_bed;
|
569
|
569
|
if (pid_output > MAX_BED_POWER) {
|
570
|
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
|
572
|
} else if (pid_output < 0){
|
573
|
573
|
if (pid_error_bed < 0 ) temp_iState_bed -= pid_error_bed; // conditional un-integration
|
574
|
574
|
pid_output=0;
|