Skip to content

Commit

Permalink
indentation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhoness committed Oct 5, 2015
1 parent 5495cb3 commit 491cf2f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions examples/evdev_joystick.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 491cf2f

Please sign in to comment.