UM3 familiy printers now set their machine type

CURA-2475
This commit is contained in:
Jaime van Kessel 2016-10-05 14:31:41 +02:00
parent 8bd3b7ea9b
commit 8cbd6443be

View file

@ -166,6 +166,14 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
self._compressing_print = False
printer_type = self._properties.get(b"machine", b"").decode("utf-8")
if printer_type == "9511.0":
self._updatePrinterType("UM3Extended")
elif printer_type == "9066.0":
self._updatePrinterType("UM3")
else:
self._updatePrinterType("unknown")
def _onNetworkAccesibleChanged(self, accessible):
Logger.log("d", "Network accessible state changed to: %s", accessible)