|
@@ -96,7 +96,16 @@ 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
|
|
-FORCE_INLINE void setTargetHotend(const float &celsius, uint8_t extruder) { target_temperature[extruder] = celsius; }
|
|
99
|
+#ifdef THERMAL_PROTECTION_HOTENDS
|
|
100
|
+ void start_watching_heater(int e=0);
|
|
101
|
+#endif
|
|
102
|
+
|
|
103
|
+FORCE_INLINE void setTargetHotend(const float &celsius, uint8_t extruder) {
|
|
104
|
+ target_temperature[extruder] = celsius;
|
|
105
|
+ #ifdef THERMAL_PROTECTION_HOTENDS
|
|
106
|
+ start_watching_heater(extruder);
|
|
107
|
+ #endif
|
|
108
|
+}
|
100
|
109
|
FORCE_INLINE void setTargetBed(const float &celsius) { target_temperature_bed = celsius; }
|
101
|
110
|
|
102
|
111
|
FORCE_INLINE bool isHeatingHotend(uint8_t extruder) { return target_temperature[extruder] > current_temperature[extruder]; }
|
|
@@ -137,10 +146,6 @@ void PID_autotune(float temp, int extruder, int ncycles);
|
137
|
146
|
void setExtruderAutoFanState(int pin, bool state);
|
138
|
147
|
void checkExtruderAutoFans();
|
139
|
148
|
|
140
|
|
-#ifdef THERMAL_PROTECTION_HOTENDS
|
141
|
|
- void start_watching_heater(int e=0);
|
142
|
|
-#endif
|
143
|
|
-
|
144
|
149
|
FORCE_INLINE void autotempShutdown() {
|
145
|
150
|
#ifdef AUTOTEMP
|
146
|
151
|
if (autotemp_enabled) {
|