From 42982b7a861f2eec2260300e0de935b1bbffb0c8 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Tue, 14 Feb 2017 17:03:37 +0100 Subject: [PATCH] Fix link to UM.Version.Version The Version object is no longer exposed via UM.__init__, so we have to dig inside the UM.Version module to get it. Contributes to issue CURA-2917. --- plugins/UM3NetworkPrinting/NetworkPrinterOutputDevice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/UM3NetworkPrinting/NetworkPrinterOutputDevice.py b/plugins/UM3NetworkPrinting/NetworkPrinterOutputDevice.py index 60e1c51ae8..fbe8eb884d 100644 --- a/plugins/UM3NetworkPrinting/NetworkPrinterOutputDevice.py +++ b/plugins/UM3NetworkPrinting/NetworkPrinterOutputDevice.py @@ -251,7 +251,7 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice): def preheatBed(self, temperature, duration): temperature = round(temperature) #The API doesn't allow floating point. duration = round(duration) - if UM.Version(self.firmwareVersion) < UM.Version("3.5.92"): #Real bed pre-heating support is implemented from 3.5.92 and up. + if UM.Version.Version(self.firmwareVersion) < UM.Version.Version("3.5.92"): #Real bed pre-heating support is implemented from 3.5.92 and up. self.setTargetBedTemperature(temperature = temperature) #No firmware-side duration support then. return url = QUrl("http://" + self._address + self._api_prefix + "printer/bed/pre_heat")