NEW: add ams retry and ams wiki guide

Change-Id: Ic589eeab1472a4625a5f1cbe98b56901c3e655ee
Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
Stone Li authored and Lane.Wei committed 2022-10-20 19:34:37 +08:00
1 parent 066a4d70c9
commit 508f814bbc
4 files changed
+34 -7

No files matched your search

+13
View File
@@ -1372,6 +1372,19 @@ int MachineObject::command_ams_select_tray(std::string tray_id)
return this->publish_gcode(gcode_cmd);
}
int MachineObject::command_ams_control(std::string action)
{
//valid actions
if (action == "resume" || action == "reset" || action == "pause") {
json j;
j["print"]["command"] = "ams_control";
j["print"]["sequence_id"] = std::to_string(MachineObject::m_sequence_id++);
j["print"]["param"] = action;
return this->publish_json(j.dump());
}
return -1;
}
int MachineObject::command_set_chamber_light(LIGHT_EFFECT effect, int on_time, int off_time, int loops, int interval)
{