|
@@ -99,6 +99,8 @@ static volatile bool temp_meas_ready = false;
|
99
|
99
|
static float pid_error_bed;
|
100
|
100
|
static float temp_iState_min_bed;
|
101
|
101
|
static float temp_iState_max_bed;
|
|
102
|
+#else //PIDTEMPBED
|
|
103
|
+ static unsigned long previous_millis_bed_heater;
|
102
|
104
|
#endif //PIDTEMPBED
|
103
|
105
|
static unsigned char soft_pwm[EXTRUDERS];
|
104
|
106
|
static unsigned char soft_pwm_bed;
|
|
@@ -640,9 +642,11 @@ void tp_init()
|
640
|
642
|
#ifdef PIDTEMP
|
641
|
643
|
temp_iState_min[e] = 0.0;
|
642
|
644
|
temp_iState_max[e] = PID_INTEGRAL_DRIVE_MAX / Ki;
|
|
645
|
+#endif //PIDTEMP
|
|
646
|
+#ifdef PIDTEMPBED
|
643
|
647
|
temp_iState_min_bed = 0.0;
|
644
|
648
|
temp_iState_max_bed = PID_INTEGRAL_DRIVE_MAX / bedKi;
|
645
|
|
-#endif //PIDTEMP
|
|
649
|
+#endif //PIDTEMPBED
|
646
|
650
|
}
|
647
|
651
|
|
648
|
652
|
#if (HEATER_0_PIN > -1)
|