fix more encoding and some bytes cleanup (#300)

This commit is contained in:
rbiasini
2019-10-15 12:05:33 -07:00
committed by GitHub
parent 162f4853df
commit 6b1f28f574
8 changed files with 28 additions and 35 deletions

View File

@@ -578,7 +578,7 @@ class Panda(object):
ts = x[i:i+0xf]
if DEBUG:
print("kline send: " + binascii.hexlify(ts))
self._handle.bulkWrite(2, chr(bus).encode()+ts)
self._handle.bulkWrite(2, bytes([bus]) + ts)
echo = self.kline_ll_recv(len(ts), bus=bus)
if echo != ts:
print("**** ECHO ERROR %d ****" % i)