|
@@ -142,10 +142,10 @@ static bool ensure_safe_temperature(const bool wait=true, const PauseMode mode=P
|
142
|
142
|
#endif
|
143
|
143
|
UNUSED(mode);
|
144
|
144
|
|
145
|
|
- if (wait)
|
146
|
|
- return thermalManager.wait_for_hotend(active_extruder);
|
|
145
|
+ if (wait) return thermalManager.wait_for_hotend(active_extruder);
|
147
|
146
|
|
148
|
|
- wait_for_heatup = true; // Allow interruption by Emergency Parser M108
|
|
147
|
+ // Allow interruption by Emergency Parser M108
|
|
148
|
+ wait_for_heatup = TERN1(PREVENT_COLD_EXTRUSION, !thermalManager.allow_cold_extrude);
|
149
|
149
|
while (wait_for_heatup && ABS(thermalManager.degHotend(active_extruder) - thermalManager.degTargetHotend(active_extruder)) > TEMP_WINDOW)
|
150
|
150
|
idle();
|
151
|
151
|
wait_for_heatup = false;
|