mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-08-12 02:09:04 +08:00
ENH: send G28 X when in printing
JIRA: STUD-9349 Change-Id: Ib14af76830380036fadcae707438472bed25d4aa Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
parent
6d66c520d0
commit
182748fb6f
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user