FIX: Cannot send the print job when the printer is not at FDM mode

jira: [STUDIO-10571]
Change-Id: I20c02b79d09400dce2089856fde98d0cd50713ff
(cherry picked from commit d327fa91781bbc568b26ba147f9dd9f625ff1022)
This commit is contained in:
xin.zhang
2025-03-06 20:35:10 +08:00
committed by Noisyfox
parent 03ea48c6b4
commit 872f0342bb
4 changed files with 19 additions and 4 deletions

View File

@@ -6059,8 +6059,7 @@ void MachineObject::parse_new_info(json print)
}
if (device.contains("type")) {
int type = device["type"].get<int>(); // FDM:1<<0 Laser:1<< Cut:1<<2
is_fdm = type & 1;
m_device_mode = (DeviceMode)device["type"].get<int>();// FDM:1<<0 Laser:1<< Cut:1<<2
}
if (device.contains("bed_temp")) {