mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 22:35:54 +08:00
CURA-5264 Don't need the if statement since the hardware-typeid is the
right value to look at and it is in the firmware api.
This commit is contained in:
parent
a3028e2c7d
commit
8c4dc1cc2b
@ -189,14 +189,10 @@ class UM3OutputDevicePlugin(OutputDevicePlugin):
|
|||||||
b"name": system_info["name"].encode("utf-8"),
|
b"name": system_info["name"].encode("utf-8"),
|
||||||
b"address": address.encode("utf-8"),
|
b"address": address.encode("utf-8"),
|
||||||
b"firmware_version": system_info["firmware"].encode("utf-8"),
|
b"firmware_version": system_info["firmware"].encode("utf-8"),
|
||||||
b"manual": b"true"
|
b"manual": b"true",
|
||||||
|
b"machine": str(system_info['hardware']["typeid"]).encode("utf-8")
|
||||||
}
|
}
|
||||||
|
|
||||||
if "hardware" in system_info and 'typeid' in system_info["hardware"]:
|
|
||||||
properties[b"machine"] = str(system_info['hardware']["typeid"]).encode("utf-8")
|
|
||||||
else:
|
|
||||||
properties[b"machine"] = system_info["variant"].encode("utf-8")
|
|
||||||
|
|
||||||
if has_cluster_capable_firmware:
|
if has_cluster_capable_firmware:
|
||||||
# Cluster needs an additional request, before it's completed.
|
# Cluster needs an additional request, before it's completed.
|
||||||
properties[b"incomplete"] = b"true"
|
properties[b"incomplete"] = b"true"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user