fix co2.py formatting

pull/795/head
Hel Gibbons 2023-06-22 12:20:25 +01:00
rodzic 16f8f0ab05
commit cbaf1fa27d
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -75,7 +75,7 @@ while True:
if mode == "co2":
# draw the co2 level
co2_string = str(co2)
if co2 < 999:
if co2 < 1000:
graphics.text(f"{co2:.0f}", 2, 2, scale=1, fixed_width=True)
else:
graphics.text(f"{co2_string[0]}", 1, 2, scale=1, fixed_width=True)