From 6dafff0b4844f50df78bc23cb5aa26ba339cc3b0 Mon Sep 17 00:00:00 2001 From: Jakob Stendahl Date: Tue, 18 Oct 2016 13:05:46 +0200 Subject: Updates Added Try Catch Cleanup of line formatting --- Raspberry Pi/python.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Raspberry Pi/python.py') diff --git a/Raspberry Pi/python.py b/Raspberry Pi/python.py index 6ebb805..ee61bec 100644 --- a/Raspberry Pi/python.py +++ b/Raspberry Pi/python.py @@ -66,9 +66,9 @@ def main(): """ Wait for heartbeat from Arduino """ while True: try: - if i2cPixel.greeting(): - print "Arduino is Online" - break + if i2cPixel.greeting(): + print "Arduino is Online" + break except Exception: pass -- cgit v1.2.3