1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-12-18 08:17:18 +00:00

Merge pull request #1286 from alhirzel/Development

Fix typo, PID_BED_POWER -> MAX_BED_POWER
This commit is contained in:
alexborro 2015-01-02 09:48:20 -02:00
commit 975810fb4a

View File

@ -584,7 +584,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_BED_POWER; pid_output=MAX_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;