Browse Source

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

Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
pseudex 4 years ago
parent
commit
4258ff1a68
No account linked to committer's email address
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      Marlin/src/feature/pause.cpp

+ 3
- 3
Marlin/src/feature/pause.cpp View File

142
   #endif
142
   #endif
143
   UNUSED(mode);
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
   while (wait_for_heatup && ABS(thermalManager.degHotend(active_extruder) - thermalManager.degTargetHotend(active_extruder)) > TEMP_WINDOW)
149
   while (wait_for_heatup && ABS(thermalManager.degHotend(active_extruder) - thermalManager.degTargetHotend(active_extruder)) > TEMP_WINDOW)
150
     idle();
150
     idle();
151
   wait_for_heatup = false;
151
   wait_for_heatup = false;

Loading…
Cancel
Save