mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-27 02:41:17 +00:00
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:
@@ -10,6 +10,33 @@ namespace Slic3r
|
||||
//Previous definitions
|
||||
class MachineObject;
|
||||
|
||||
class DevCtrlInfo
|
||||
{
|
||||
public:
|
||||
DevCtrlInfo() {};
|
||||
DevCtrlInfo(MachineObject* obj, int sequence_id, const json& req_json, int interval_max = 3, int interval_min = 0);
|
||||
|
||||
public:
|
||||
bool CheckCanUpdateData(const nlohmann::json& jj);
|
||||
|
||||
private:
|
||||
void OnTimeOut() { m_time_out = true;}
|
||||
void OnReceived() { m_received = true;} ;
|
||||
|
||||
private:
|
||||
bool m_time_out = false;
|
||||
bool m_received = false;
|
||||
|
||||
std::string m_request_dev_id = "";
|
||||
|
||||
time_t m_request_time = 0;
|
||||
int m_request_seq = 0;
|
||||
json m_request_json = json();
|
||||
|
||||
// check
|
||||
int m_request_interval_max = 3;
|
||||
int m_request_interval_min = 0;
|
||||
};
|
||||
|
||||
class DevCtrl
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user