Permalink
Browse files

eduro.py - fix swapped cable_in and blue_selected

  • Loading branch information...
m3d committed Oct 7, 2018
1 parent 6ab31b3 commit 5f38098fb879e6c299e7a2458941bde91bb49c87
Showing with 2 additions and 2 deletions.
  1. +2 −2 osgar/drivers/eduro.py
@@ -109,8 +109,8 @@ def update_buttons(self, data):
val = struct.unpack('<H', data)[0] & 0x300
if self.buttons is None or val != self.buttons:
self.buttons = val
msg = { 'blue_selected': ((val & 0x0100) != 0),
'cable_in': ((val & 0x0200) == 0) }
msg = { 'blue_selected': ((val & 0x0200) != 0),
'cable_in': ((val & 0x0100) == 0) }
if msg['blue_selected']:
self.send_leds(blue=1, red=0)
else:

0 comments on commit 5f38098

Please sign in to comment.