Permalink
Browse files

eduro.py - fix red/blue swap

  • Loading branch information...
m3d committed Oct 9, 2018
1 parent fc908e1 commit 0ec55e8848d2e42481ad7f409c74b8231530df00
Showing with 1 addition and 1 deletion.
  1. +1 −1 osgar/drivers/eduro.py
@@ -109,7 +109,7 @@ 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 & 0x0200) != 0),
msg = { 'blue_selected': ((val & 0x0200) == 0),
'cable_in': ((val & 0x0100) == 0) }
if msg['blue_selected']:
self.send_leds(blue=1, red=0)

0 comments on commit 0ec55e8

Please sign in to comment.