Shift call of start_watching_heater() into setTargetHotend()
to warrant watching is set or reset. Make setTargetBed() in _lcd_preheat() dependant of TEMP_SENSOR_BED. Use disable_all_heaters() in lcd_cooldown() and abort_on_endstop_hit.
This commit is contained in:
@ -96,7 +96,12 @@ 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; }
|
||||
FORCE_INLINE void setTargetHotend(const float &celsius, uint8_t extruder) {
|
||||
target_temperature[extruder] = celsius;
|
||||
#ifdef WATCH_TEMP_PERIOD
|
||||
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]; }
|
||||
|
Reference in New Issue
Block a user