Fix heater status display for advanced pause

This commit is contained in:
Thomas Moore
2017-05-31 21:26:05 +00:00
committed by Scott Lahteine
parent ac33a378c0
commit a32f7b329c
3 changed files with 6 additions and 6 deletions

View File

@@ -5931,7 +5931,8 @@ inline void gcode_M17() {
idle();
wait_for_heatup = false;
HOTEND_LOOP() {
if (abs(thermalManager.degHotend(e) - thermalManager.degTargetHotend(e)) > 3) {
const int16_t target_temp = thermalManager.degTargetHotend(e);
if (target_temp && abs(thermalManager.degHotend(e) - target_temp) > 3) {
wait_for_heatup = true;
break;
}