Vacapetr patch 1 (#14)

* adjust the display for a lower resolution/800x480/

string shortening / long string caused the display to shift at a lower resolution. (panel job_status )
This commit is contained in:
vacapetr authored and GitHub committed 2020-11-14 17:16:03 -05:00
1 parent 127237fd76
commit ca9960871d
1 file changed
+1 -1
+1 -1
View File
@@ -206,4 +206,4 @@ class KlippyGtk:
def formatTemperatureString(temp, target):
if (target > temp-2 and target < temp+2) or round(target,0) == 0:
return str(round(temp,2)) + "°C" #°C →"
return str(round(temp,2)) + "°C → " + str(round(target,2)) + "°C"
return str(round(temp)) + " → " + str(round(target)) + "°C"