Fix ADVANCED_PAUSE && !PREVENT_COLD_EXTRUSION (#19740)

This commit is contained in:
rlojek 2020-10-15 20:44:57 +02:00 committed by GitHub
parent f86c6851fc
commit 72e3238c3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -132,8 +132,10 @@ static bool ensure_safe_temperature(const bool wait=true, const PauseMode mode=P
DEBUG_SECTION(est, "ensure_safe_temperature", true); DEBUG_SECTION(est, "ensure_safe_temperature", true);
DEBUG_ECHOLNPAIR("... wait:", int(wait), " mode:", int(mode)); DEBUG_ECHOLNPAIR("... wait:", int(wait), " mode:", int(mode));
if (!DEBUGGING(DRYRUN) && thermalManager.targetTooColdToExtrude(active_extruder)) #if ENABLED(PREVENT_COLD_EXTRUSION)
thermalManager.setTargetHotend(thermalManager.extrude_min_temp, active_extruder); if (!DEBUGGING(DRYRUN) && thermalManager.targetTooColdToExtrude(active_extruder))
thermalManager.setTargetHotend(thermalManager.extrude_min_temp, active_extruder);
#endif
#if HAS_LCD_MENU #if HAS_LCD_MENU
lcd_pause_show_message(PAUSE_MESSAGE_HEATING, mode); lcd_pause_show_message(PAUSE_MESSAGE_HEATING, mode);