mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
NEW:use new homing command
jira:[none] Change-Id: I9d60d0b5c2d0e2cf7ac5c5e4b0dbcf2daf6edbb1 (cherry picked from commit 9dce95d401e8333077db63dbad57bda837d0ce19)
This commit is contained in:
@@ -1824,6 +1824,15 @@ int MachineObject::command_go_home()
|
||||
return this->publish_gcode("G28 \n");
|
||||
}
|
||||
|
||||
int MachineObject::command_go_home2()
|
||||
{
|
||||
BOOST_LOG_TRIVIAL(info) << "New protocol of command_go_home2";
|
||||
json j;
|
||||
j["print"]["command"] = "back_to_center";
|
||||
j["print"]["sequence_id"] = std::to_string(MachineObject::m_sequence_id++);
|
||||
return this->publish_json(j.dump());
|
||||
}
|
||||
|
||||
int MachineObject::command_control_fan(FanType fan_type, bool on_off)
|
||||
{
|
||||
std::string gcode = (boost::format("M106 P%1% S%2% \n") % (int)fan_type % (on_off ? 255 : 0)).str();
|
||||
|
||||
Reference in New Issue
Block a user