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:
19
src/slic3r/GUI/DeviceCore/DevFilaSystemCtrl.cpp
Normal file
19
src/slic3r/GUI/DeviceCore/DevFilaSystemCtrl.cpp
Normal 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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user