Browse Source

Merge pull request #8 from fphammerle/fix/rx-type-error

tx.py: fix TypeError when splitting byte string (python3 compatibility)
Nahuel D. Sánchez 3 years ago
parent
commit
e227bf59a0
1 changed files with 1 additions and 3 deletions
  1. 1 3
      tx.py

+ 1 - 3
tx.py

@@ -2,7 +2,6 @@
 
 from pycc1101.pycc1101 import TICC1101
 from struct import pack
-import binascii
 import time
 
 ticc1101 = TICC1101()
@@ -18,7 +17,6 @@ count = 0
 
 while True:
     data = pack('<I', count)
-    toSend = [int(binascii.hexlify(x),16) for x in data]
-    ticc1101.sendData(toSend)
+    ticc1101.sendData(list(data))
     count += 1
     time.sleep(1)