ENH: support AMS switching for A series; clean class AMSSetting

jira: [STUDIO-14068] [STUDIO-14330]
Change-Id: I6281fbf56f3bf406ef28103998790a2a98c3f5c0
(cherry picked from commit 8ee02ec73076691c482ea6d089a49ea1c99ad10c)
This commit is contained in:
xin.zhang
2025-09-05 17:28:41 +08:00
committed by Noisyfox
parent ac85f367c4
commit e84bdaf0fd
20 changed files with 748 additions and 169 deletions

View File

@@ -0,0 +1,19 @@
#include <nlohmann/json.hpp>
#include "DevFilaSystem.h"
#include "slic3r/GUI/DeviceManager.hpp"// TODO: remove this include
#include "DevUtil.h"
using namespace nlohmann;
namespace Slic3r
{
int DevFilaSystem::CtrlAmsReset() const
{
json jj_command;
jj_command["print"]["command"] = "ams_reset";
jj_command["print"]["sequence_id"] = std::to_string(MachineObject::m_sequence_id++);
return m_owner->publish_json(jj_command);
}
}