|
@@ -96,9 +96,13 @@ FORCE_INLINE float degBed() { return current_temperature_bed; }
|
96
|
96
|
FORCE_INLINE float degTargetHotend(uint8_t extruder) { return target_temperature[extruder]; }
|
97
|
97
|
FORCE_INLINE float degTargetBed() { return target_temperature_bed; }
|
98
|
98
|
|
|
99
|
+#ifdef THERMAL_PROTECTION_HOTENDS
|
|
100
|
+ void start_watching_heater(int e=0);
|
|
101
|
+#endif
|
|
102
|
+
|
99
|
103
|
FORCE_INLINE void setTargetHotend(const float &celsius, uint8_t extruder) {
|
100
|
104
|
target_temperature[extruder] = celsius;
|
101
|
|
- #ifdef WATCH_TEMP_PERIOD
|
|
105
|
+ #ifdef THERMAL_PROTECTION_HOTENDS
|
102
|
106
|
start_watching_heater(extruder);
|
103
|
107
|
#endif
|
104
|
108
|
}
|
|
@@ -142,10 +146,6 @@ void PID_autotune(float temp, int extruder, int ncycles);
|
142
|
146
|
void setExtruderAutoFanState(int pin, bool state);
|
143
|
147
|
void checkExtruderAutoFans();
|
144
|
148
|
|
145
|
|
-#ifdef THERMAL_PROTECTION_HOTENDS
|
146
|
|
- void start_watching_heater(int e=0);
|
147
|
|
-#endif
|
148
|
|
-
|
149
|
149
|
FORCE_INLINE void autotempShutdown() {
|
150
|
150
|
#ifdef AUTOTEMP
|
151
|
151
|
if (autotemp_enabled) {
|