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.
This commit is contained in:
Ghostkeeper 2017-02-14 17:03:37 +01:00
parent b488441d81
commit 42982b7a86
No known key found for this signature in database
GPG key ID: C5F96EE2BC0F7E75

View file

@ -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")