Merge pull request #1285 from drf5n/PID_CI_v2

temperature.cpp: Fix typo of MAX_BED_PID to MAX_BED_POWER.
This commit is contained in:
alexborro 2015-01-01 22:56:21 -02:00
commit 80b17ab573

View file

@ -582,9 +582,9 @@ void manage_heater()
temp_dState_bed = pid_input;
pid_output = pTerm_bed + iTerm_bed - dTerm_bed;
if (pid_output > MAX_BED_PID) {
if (pid_output > MAX_BED_POWER) {
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){
if (pid_error_bed < 0 ) temp_iState_bed -= pid_error_bed; // conditional un-integration
pid_output=0;