Improve error messages (#549)

Shows if the issue is with moonraker or klipper
if the issue is with klipper and there is info about it then show it
Reconnect now has a counter and it's visible to the user
This commit is contained in:
Alfredo Monclus
2022-03-18 20:18:53 -03:00
committed by GitHub
parent 7dc74f74f4
commit 046e03b883
4 changed files with 49 additions and 24 deletions

View File

@@ -377,5 +377,8 @@ class Printer:
for x in self.tempstore[device]:
if len(self.tempstore[device][x]) >= 1200:
self.tempstore[device][x].pop(0)
self.tempstore[device][x].append(round(self.get_dev_stat(device, x[:-1]), 2))
temp = self.get_dev_stat(device, x[:-1])
if temp is None:
temp = 0
self.tempstore[device][x].append(round(temp))
return True