more Python 3 fixes, attempting to fix jenkins wifi regresison test (#295)

* more Python 3 fixes, attempting to fix jenkins wifi regresison test. Not successful, but closer.
This commit is contained in:
rbiasini
2019-10-10 12:34:52 -07:00
committed by GitHub
parent 2f9e076289
commit f9053f5df4
7 changed files with 38 additions and 21 deletions

View File

@@ -387,7 +387,7 @@ class Panda(object):
dat = self._handle.controlRead(Panda.REQUEST_IN, 0xd0, 0, 0, 0x20)
hashsig, calc_hash = dat[0x1c:], hashlib.sha1(dat[0:0x1c]).digest()[0:4]
assert(hashsig == calc_hash)
return [dat[0:0x10], dat[0x10:0x10+10]]
return [dat[0:0x10].decode("utf8"), dat[0x10:0x10+10].decode("utf8")]
def get_secret(self):
return self._handle.controlRead(Panda.REQUEST_IN, 0xd0, 1, 0, 0x10)