printer: fix some issues with the graph
This commit is contained in:
parent
b73292c8f9
commit
d945ef8b0a
@ -329,7 +329,8 @@ class Printer:
|
|||||||
return self.extrudercount
|
return self.extrudercount
|
||||||
|
|
||||||
def get_temp_store_devices(self):
|
def get_temp_store_devices(self):
|
||||||
return list(self.tempstore)
|
if self.tempstore is not None:
|
||||||
|
return list(self.tempstore)
|
||||||
|
|
||||||
def get_temp_store_device_has_target(self, device):
|
def get_temp_store_device_has_target(self, device):
|
||||||
if device in self.tempstore:
|
if device in self.tempstore:
|
||||||
@ -398,5 +399,5 @@ class Printer:
|
|||||||
temp = self.get_dev_stat(device, x[:-1])
|
temp = self.get_dev_stat(device, x[:-1])
|
||||||
if temp is None:
|
if temp is None:
|
||||||
temp = 0
|
temp = 0
|
||||||
self.tempstore[device][x].append(round(temp))
|
self.tempstore[device][x].append(round(temp, 2))
|
||||||
return True
|
return True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user