mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
NEW:new extrusion command
jira:[none ] Change-Id: I721ce4b2eb5ab02a88dc370f14bbfdb1b91f40a1 (cherry picked from commit 79c534375f7650480208a662e0a8302bc4ff6c45) (cherry picked from commit 7dd335f134e663ec3d2817dbea0d0077c9fcb986)
This commit is contained in:
@@ -2290,6 +2290,15 @@ int MachineObject::command_axis_control(std::string axis, double unit, double in
|
||||
return this->publish_gcode(cmd);
|
||||
}
|
||||
|
||||
int MachineObject::command_extruder_control(int nozzle_id, double val)
|
||||
{
|
||||
json j;
|
||||
j["print"]["command"] = "set_extrusion_length";
|
||||
j["print"]["sequence_id"] = std::to_string(MachineObject::m_sequence_id++);
|
||||
j["print"]["extruder_index"] = nozzle_id;
|
||||
j["print"]["length"] = (int)val;
|
||||
return this->publish_json(j.dump());
|
||||
}
|
||||
|
||||
bool MachineObject::is_support_command_calibration()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user