mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 03:43:52 +00:00
ENH: the old protocol only support AMS_LITE
JIRA: [STUDIO-14841] Change-Id: I6040d54490a79b323fcd7000a638e5fc4b45b0b4 (cherry picked from commit b6274332d7dc8077b2612ef4518a9cbaf12123d9)
This commit is contained in:
@@ -361,11 +361,14 @@ void DevFilaSystemParser::ParseV1_0(const json& jj, MachineObject* obj, DevFilaS
|
|||||||
int type_id = 1; // 0:dummy 1:ams 2:ams-lite 3:n3f 4:n3s
|
int type_id = 1; // 0:dummy 1:ams 2:ams-lite 3:n3f 4:n3s
|
||||||
|
|
||||||
/*ams info*/
|
/*ams info*/
|
||||||
if (it->contains("info"))
|
if (it->contains("info")) {
|
||||||
{
|
|
||||||
const std::string& info = (*it)["info"].get<std::string>();
|
const std::string& info = (*it)["info"].get<std::string>();
|
||||||
type_id = DevUtil::get_flag_bits(info, 0, 4);
|
type_id = DevUtil::get_flag_bits(info, 0, 4);
|
||||||
extuder_id = DevUtil::get_flag_bits(info, 8, 4);
|
extuder_id = DevUtil::get_flag_bits(info, 8, 4);
|
||||||
|
} else {
|
||||||
|
if (!obj->is_enable_ams_np) {
|
||||||
|
type_id = DevAms::AMS_LITE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*AMS without initialization*/
|
/*AMS without initialization*/
|
||||||
|
|||||||
Reference in New Issue
Block a user