From cb57fc727dedbf6589251876790f18a4a394bd42 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Fri, 13 Mar 2015 20:19:51 -0700 Subject: [PATCH] Declare pid_output for PIDBEDTEMP --- Marlin/temperature.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Marlin/temperature.cpp b/Marlin/temperature.cpp index 69b74dc0d..f6353fcfd 100644 --- a/Marlin/temperature.cpp +++ b/Marlin/temperature.cpp @@ -131,8 +131,6 @@ static volatile bool temp_meas_ready = false; static float pid_error[EXTRUDERS]; static float temp_iState_min[EXTRUDERS]; static float temp_iState_max[EXTRUDERS]; - // static float pid_input[EXTRUDERS]; - // static float pid_output[EXTRUDERS]; static bool pid_reset[EXTRUDERS]; #endif //PIDTEMP #ifdef PIDTEMPBED @@ -710,7 +708,7 @@ void manage_heater() { #endif #ifdef PIDTEMPBED - pid_output = get_pid_output_bed(); + float pid_output = get_pid_output_bed(); soft_pwm_bed = current_temperature_bed > BED_MINTEMP && current_temperature_bed < BED_MAXTEMP ? (int)pid_output >> 1 : 0;