From 491cf2f1577d33f8e3b9c4187a2271a7444e5a88 Mon Sep 17 00:00:00 2001 From: David Honess Date: Mon, 5 Oct 2015 09:36:51 +0100 Subject: [PATCH] indentation fix --- examples/evdev_joystick.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/examples/evdev_joystick.py b/examples/evdev_joystick.py index 41d2a3a..49a3bb8 100644 --- a/examples/evdev_joystick.py +++ b/examples/evdev_joystick.py @@ -13,12 +13,13 @@ found = False; devices = [InputDevice(fn) for fn in list_devices()] for dev in devices: - if dev.name == 'Raspberry Pi Sense HAT Joystick': - found = True; - break + if dev.name == 'Raspberry Pi Sense HAT Joystick': + found = True; + break + if not(found): - print('Raspberry Pi Sense HAT Joystick not found. Aborting ...') - exit() + print('Raspberry Pi Sense HAT Joystick not found. Aborting ...') + sys.exit() # 0, 0 = Top left # 7, 7 = Bottom right