Skip to content

Commit

Permalink
Update led.py
Browse files Browse the repository at this point in the history
I experienced some trouble with apps sent 3 data bytes... (hxxps://play.google.com/store/apps/details?id=mi_light.mi_light&hl).
After I cut the data, everything is fine.
  • Loading branch information
agehring80 authored Jul 7, 2016
1 parent b458592 commit 5a339ac
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source/led.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,4 @@

if data is not None:
# print("led command: ", str(data)) # Debugging
ser.write(data) # Write packet data out

ser.write(data[:2]) # Write packet data out (2 bytes only)

0 comments on commit 5a339ac

Please sign in to comment.