FIX: add switching status panel

jira: [STUDIO-10272]
Change-Id: I0bf0c45a3176d132d246908255f1984b50fe75f9
(cherry picked from commit 3085175fc6606b559b2719b53f2fc195aa0f6260)
This commit is contained in:
xin.zhang
2025-02-20 15:19:15 +08:00
committed by Noisyfox
parent cff84682d8
commit 73810199d6
3 changed files with 204 additions and 8 deletions

View File

@@ -2185,7 +2185,7 @@ int MachineObject::command_ams_select_tray(std::string tray_id)
int MachineObject::command_ams_control(std::string action)
{
//valid actions
if (action == "resume" || action == "reset" || action == "pause" || action == "done") {
if (action == "resume" || action == "reset" || action == "pause" || action == "done" || action == "abort") {
json j;
j["print"]["command"] = "ams_control";
j["print"]["sequence_id"] = std::to_string(MachineObject::m_sequence_id++);