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 2020-11-14 23:16:03 +01:00 committed by GitHub
parent 127237fd76
commit ca9960871d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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"