FIX: hide fan when device not in fdm
JIRA: none Change-Id: I14a6e01b4e0950ca1bc3c805fe00313cfd7caf06 (cherry picked from commit c12b4f13911a7f6057eced54dba9e41cf75985ea)
This commit is contained in:
@@ -5895,7 +5895,8 @@ void MachineObject::parse_new_info(json print)
|
||||
}
|
||||
|
||||
if (device.contains("type")) {
|
||||
int type = device["type"]; //FDM:1<<0 Laser:1<< Cut:1<<2
|
||||
int type = device["type"].get<int>(); // FDM:1<<0 Laser:1<< Cut:1<<2
|
||||
is_fdm = type & 1;
|
||||
}
|
||||
|
||||
if (device.contains("bed_temp")) {
|
||||
|
||||
Reference in New Issue
Block a user