Files
OrcaSlicer-KX/src/slic3r/GUI/DeviceCore/DevFilaSystemCtrl.cpp
xin.zhang e84bdaf0fd ENH: support AMS switching for A series; clean class AMSSetting
jira: [STUDIO-14068] [STUDIO-14330]
Change-Id: I6281fbf56f3bf406ef28103998790a2a98c3f5c0
(cherry picked from commit 8ee02ec73076691c482ea6d089a49ea1c99ad10c)
2025-10-28 15:29:55 +08:00

19 lines
445 B
C++

#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);
}
}