diff --git a/src/slic3r/GUI/DeviceManager.cpp b/src/slic3r/GUI/DeviceManager.cpp index 09ea5f84e..84b1bb5f6 100644 --- a/src/slic3r/GUI/DeviceManager.cpp +++ b/src/slic3r/GUI/DeviceManager.cpp @@ -1670,7 +1670,12 @@ int MachineObject::command_auto_leveling() int MachineObject::command_go_home() { - return this->publish_gcode("G28 \n"); + if (this->is_in_printing()) { + return this->publish_gcode("G28 X\n"); + } + else { + return this->publish_gcode("G28 \n"); + } } int MachineObject::command_control_fan(FanType fan_type, bool on_off)