From 683c97eb91714a9bfd641be8a02fa69f2e01ccf3 Mon Sep 17 00:00:00 2001 From: Brendan Haines Date: Mon, 2 Mar 2020 16:25:19 -0700 Subject: [PATCH] clean up print messages --- Software/python/hwtest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Software/python/hwtest.py b/Software/python/hwtest.py index a6ffefa..f583495 100644 --- a/Software/python/hwtest.py +++ b/Software/python/hwtest.py @@ -93,7 +93,8 @@ def control_thread(): while True: time.sleep(0.01) brightness = [get_normalized_reflectivity(c) for c in range(8)] - print(brightness) + if debug: + print([f"{b:1.2f}" for b in brightness]) ii += 1 if ii == 10: ii = 0