From cbaf1fa27d498a72965e2dacd83b10c95728eca8 Mon Sep 17 00:00:00 2001 From: Hel Gibbons Date: Thu, 22 Jun 2023 12:20:25 +0100 Subject: [PATCH] fix co2.py formatting --- micropython/examples/stellar_unicorn/co2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/micropython/examples/stellar_unicorn/co2.py b/micropython/examples/stellar_unicorn/co2.py index 65e79862..5eaf08e5 100644 --- a/micropython/examples/stellar_unicorn/co2.py +++ b/micropython/examples/stellar_unicorn/co2.py @@ -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)