Browse Source

Fix ADVANCED_PAUSE && !PREVENT_COLD_EXTRUSION (#19740)

rlojek 4 years ago
parent
commit
72e3238c3f
No account linked to committer's email address
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      Marlin/src/feature/pause.cpp

+ 4
- 2
Marlin/src/feature/pause.cpp View File

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

Loading…
Cancel
Save