mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
ENH: support the react of actions for HMS actions
jira: [STUDIO-11664] Change-Id: I5444748946e5baa219d6d413efd4e954dc578064 (cherry picked from commit 69f0bafd8a3f0d639fa85a83deec10baac1bac22)
This commit is contained in:
@@ -2067,6 +2067,17 @@ int MachineObject::command_hms_ignore(const std::string& error_str, const std::s
|
||||
return this->publish_json(j.dump(), 1);
|
||||
}
|
||||
|
||||
int MachineObject::command_hms_stop(const std::string &error_str, const std::string &job_id) {
|
||||
json j;
|
||||
j["print"]["command"] = "stop";
|
||||
j["print"]["err"] = error_str;
|
||||
j["print"]["param"] = "reserve";
|
||||
j["print"]["job_id"] = job_id;
|
||||
j["print"]["sequence_id"] = std::to_string(MachineObject::m_sequence_id++);
|
||||
|
||||
return this->publish_json(j.dump(), 1);
|
||||
}
|
||||
|
||||
int MachineObject::command_stop_buzzer()
|
||||
{
|
||||
json j;
|
||||
|
||||
Reference in New Issue
Block a user