format
This commit is contained in:
@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user