ENH: clean codes about device
JIRA: [STUDIO-13609] Change-Id: I591de7033360b9570600006cfbce2148a8d031d5 (cherry picked from commit e9c774be8f4c89b8dafa14ef56913612fb68bd0c)
This commit is contained in:
22
src/slic3r/GUI/DeviceCore/DevExtruderSystemCtrl.cpp
Normal file
22
src/slic3r/GUI/DeviceCore/DevExtruderSystemCtrl.cpp
Normal file
@@ -0,0 +1,22 @@
|
||||
#include <nlohmann/json.hpp>
|
||||
#include "DevExtruderSystem.h"
|
||||
|
||||
#include "slic3r/GUI/DeviceManager.hpp"
|
||||
|
||||
|
||||
using namespace nlohmann;
|
||||
|
||||
namespace Slic3r
|
||||
{
|
||||
int DevExtderSystem::CtrlRetrySwitching()
|
||||
{
|
||||
if (m_owner) { return m_owner->command_ams_control("resume"); }
|
||||
return -1;
|
||||
}
|
||||
|
||||
int DevExtderSystem::CtrlQuitSwitching()
|
||||
{
|
||||
if (m_owner) { return m_owner->command_ams_control("abort"); }
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user