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 2022-10-17 14:12:56 +08:00 committed by Lane.Wei
parent 066a4d70c9
commit 508f814bbc
4 changed files with 34 additions and 7 deletions

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)
{