From 8cbd6443be6dee070a225d2e444fa3080204c0e2 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Wed, 5 Oct 2016 14:31:41 +0200 Subject: [PATCH] UM3 familiy printers now set their machine type CURA-2475 --- NetworkPrinterOutputDevice.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/NetworkPrinterOutputDevice.py b/NetworkPrinterOutputDevice.py index 288d01f975..f57637af1f 100644 --- a/NetworkPrinterOutputDevice.py +++ b/NetworkPrinterOutputDevice.py @@ -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)