Procházet zdrojové kódy

Allow cold Filament Load/Unload with M302 P1 (#20262)

Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
pseudex před 4 roky
rodič
revize
4258ff1a68
No account linked to committer's email address
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 3
    3
      Marlin/src/feature/pause.cpp

+ 3
- 3
Marlin/src/feature/pause.cpp Zobrazit soubor

@@ -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;

Loading…
Zrušit
Uložit