temperature.cpp: Fix typo of PID_MAX to MAX_BED_POWER for the bed.
This commit is contained in:
parent
6583bb781d
commit
625860f086
1 changed files with 1 additions and 1 deletions
|
@ -568,7 +568,7 @@ void manage_heater()
|
||||||
pid_output = pTerm_bed + iTerm_bed - dTerm_bed;
|
pid_output = pTerm_bed + iTerm_bed - dTerm_bed;
|
||||||
if (pid_output > MAX_BED_POWER) {
|
if (pid_output > MAX_BED_POWER) {
|
||||||
if (pid_error_bed > 0 ) temp_iState_bed -= pid_error_bed; // conditional un-integration
|
if (pid_error_bed > 0 ) temp_iState_bed -= pid_error_bed; // conditional un-integration
|
||||||
pid_output=PID_MAX;
|
pid_output=PID_BED_POWER;
|
||||||
} else if (pid_output < 0){
|
} else if (pid_output < 0){
|
||||||
if (pid_error_bed < 0 ) temp_iState_bed -= pid_error_bed; // conditional un-integration
|
if (pid_error_bed < 0 ) temp_iState_bed -= pid_error_bed; // conditional un-integration
|
||||||
pid_output=0;
|
pid_output=0;
|
||||||
|
|
Reference in a new issue