From 182748fb6f90e6d35b3ebcefab30a2cf869f6c6c Mon Sep 17 00:00:00 2001 From: Stone Li Date: Fri, 27 Dec 2024 16:18:24 +0800 Subject: [PATCH] ENH: send G28 X when in printing JIRA: STUD-9349 Change-Id: Ib14af76830380036fadcae707438472bed25d4aa Signed-off-by: Stone Li --- src/slic3r/GUI/DeviceManager.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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)