|
|
@ -96,7 +96,16 @@ FORCE_INLINE float degBed() { return current_temperature_bed; } |
|
|
|
FORCE_INLINE float degTargetHotend(uint8_t extruder) { return target_temperature[extruder]; } |
|
|
|
FORCE_INLINE float degTargetBed() { return target_temperature_bed; } |
|
|
|
|
|
|
|
FORCE_INLINE void setTargetHotend(const float &celsius, uint8_t extruder) { target_temperature[extruder] = celsius; } |
|
|
|
#ifdef THERMAL_PROTECTION_HOTENDS |
|
|
|
void start_watching_heater(int e=0); |
|
|
|
#endif |
|
|
|
|
|
|
|
FORCE_INLINE void setTargetHotend(const float &celsius, uint8_t extruder) { |
|
|
|
target_temperature[extruder] = celsius; |
|
|
|
#ifdef THERMAL_PROTECTION_HOTENDS |
|
|
|
start_watching_heater(extruder); |
|
|
|
#endif |
|
|
|
} |
|
|
|
FORCE_INLINE void setTargetBed(const float &celsius) { target_temperature_bed = celsius; } |
|
|
|
|
|
|
|
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); |
|
|
|
void setExtruderAutoFanState(int pin, bool state); |
|
|
|
void checkExtruderAutoFans(); |
|
|
|
|
|
|
|
#ifdef THERMAL_PROTECTION_HOTENDS |
|
|
|
void start_watching_heater(int e=0); |
|
|
|
#endif |
|
|
|
|
|
|
|
FORCE_INLINE void autotempShutdown() { |
|
|
|
#ifdef AUTOTEMP |
|
|
|
if (autotemp_enabled) { |
|
|
|