Browse Source

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

Prevent crash, on filament change, when printer is not homed
pull/1/head
Giuliano 6 years ago
committed by Scott Lahteine
parent
commit
8f686aa449
  1. 8
      Marlin/src/feature/pause.cpp

8
Marlin/src/feature/pause.cpp

@ -376,11 +376,9 @@ bool pause_print(const float &retract, const point_t &park_point, const float &u
if (retract && thermalManager.hotEnoughToExtrude(active_extruder)) if (retract && thermalManager.hotEnoughToExtrude(active_extruder))
do_pause_e_move(retract, PAUSE_PARK_RETRACT_FEEDRATE); do_pause_e_move(retract, PAUSE_PARK_RETRACT_FEEDRATE);
#if ENABLED(NO_MOTION_BEFORE_HOMING) // Park the nozzle by moving up by z_lift and then moving to (x_pos, y_pos)
if (!axis_unhomed_error()) if (!axis_unhomed_error())
#endif Nozzle::park(2, park_point);
// Park the nozzle by moving up by z_lift and then moving to (x_pos, y_pos)
Nozzle::park(2, park_point);
// Unload the filament // Unload the filament
if (unload_length) if (unload_length)

Loading…
Cancel
Save