This commit is contained in:
cqc
2026-01-04 11:37:27 +01:00
parent 05c67c9915
commit a03b9c2160

View File

@ -125,8 +125,8 @@ def update_display():
d = float('inf')
b = float('NaN')
print(name, ":", d, b)
du = "m" if math.isinf(d) else ""
bu = "°" if math.isnan(b) else ""
du = "" if math.isinf(d) else "m"
bu = "" if math.isnan(b) else "°"
display.text(f"{name}: {d:.0f}{du} {b:.0f}{bu}", 0, 10*(i+1), 1)
display.show()