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,11 +376,9 @@ bool pause_print(const float &retract, const point_t &park_point, const float &u
376 376
   if (retract && thermalManager.hotEnoughToExtrude(active_extruder))
377 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 383
   // Unload the filament
386 384
   if (unload_length)

Loading…
Cancel
Save