|
@@ -131,8 +131,6 @@ static volatile bool temp_meas_ready = false;
|
131
|
131
|
static float pid_error[EXTRUDERS];
|
132
|
132
|
static float temp_iState_min[EXTRUDERS];
|
133
|
133
|
static float temp_iState_max[EXTRUDERS];
|
134
|
|
- // static float pid_input[EXTRUDERS];
|
135
|
|
- // static float pid_output[EXTRUDERS];
|
136
|
134
|
static bool pid_reset[EXTRUDERS];
|
137
|
135
|
#endif //PIDTEMP
|
138
|
136
|
#ifdef PIDTEMPBED
|
|
@@ -710,7 +708,7 @@ void manage_heater() {
|
710
|
708
|
#endif
|
711
|
709
|
|
712
|
710
|
#ifdef PIDTEMPBED
|
713
|
|
- pid_output = get_pid_output_bed();
|
|
711
|
+ float pid_output = get_pid_output_bed();
|
714
|
712
|
|
715
|
713
|
soft_pwm_bed = current_temperature_bed > BED_MINTEMP && current_temperature_bed < BED_MAXTEMP ? (int)pid_output >> 1 : 0;
|
716
|
714
|
|