Browse Source

[2.0.x] Fix change filament crash (#11269)

Prevent crash, on filament change, when printer is not homed
Giuliano 7 years ago
parent
commit
8f686aa449
1 changed files with 3 additions and 5 deletions
  1. 3
    5
      Marlin/src/feature/pause.cpp

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

376
   if (retract && thermalManager.hotEnoughToExtrude(active_extruder))
376
   if (retract && thermalManager.hotEnoughToExtrude(active_extruder))
377
     do_pause_e_move(retract, PAUSE_PARK_RETRACT_FEEDRATE);
377
     do_pause_e_move(retract, PAUSE_PARK_RETRACT_FEEDRATE);
378
 
378
 
379
-  #if ENABLED(NO_MOTION_BEFORE_HOMING)
380
-    if (!axis_unhomed_error())
381
-  #endif
382
-      // Park the nozzle by moving up by z_lift and then moving to (x_pos, y_pos)
383
-      Nozzle::park(2, park_point);
379
+  // Park the nozzle by moving up by z_lift and then moving to (x_pos, y_pos)
380
+  if (!axis_unhomed_error())
381
+    Nozzle::park(2, park_point);
384
 
382
 
385
   // Unload the filament
383
   // Unload the filament
386
   if (unload_length)
384
   if (unload_length)

Loading…
Cancel
Save