FIX: hide fan when device not in fdm

JIRA: none

Change-Id: I14a6e01b4e0950ca1bc3c805fe00313cfd7caf06
(cherry picked from commit c12b4f13911a7f6057eced54dba9e41cf75985ea)
This commit is contained in:
Kunlong Ma
2025-01-12 17:43:22 +08:00
committed by Noisyfox
parent 632281fcc0
commit 9e16287b21
5 changed files with 27 additions and 10 deletions

View File

@@ -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")) {