1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-29 23:07:42 +00:00

[1.1.x] Fix change filament (#11268)

Prevent crash, on filament change, when printer is not homed
This commit is contained in:
Giuliano 2018-07-17 04:48:45 +02:00 committed by Scott Lahteine
parent bc961220b7
commit e6801ff84a

View File

@ -6882,10 +6882,8 @@ inline void gcode_M17() {
if (retract && thermalManager.hotEnoughToExtrude(active_extruder))
do_pause_e_move(retract, PAUSE_PARK_RETRACT_FEEDRATE);
#if ENABLED(NO_MOTION_BEFORE_HOMING)
if (!axis_unhomed_error())
#endif
// Park the nozzle by moving up by z_lift and then moving to (x_pos, y_pos)
if (!axis_unhomed_error())
Nozzle::park(2, park_point);
// Unload the filament