bad asserts

master
George Hotz 2018-03-08 15:05:19 -08:00
parent b2e6c3fac0
commit b65d30cf18
1 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ def isotp_recv_subaddr(panda, addr, bus, sendaddr, subaddr):
msg = recv(panda, 1, addr, bus)[0]
# TODO: handle other subaddr also communicating
assert ord(msg[0]) == chr(subaddr)
assert ord(msg[0]) == subaddr
if ord(msg[1])&0xf0 == 0x10:
# first
@ -74,7 +74,7 @@ def isotp_recv_subaddr(panda, addr, bus, sendaddr, subaddr):
idx = 1
for mm in recv(panda, (tlen-len(dat) + 5)/6, addr, bus):
assert ord(mm[0]) == chr(subaddr)
assert ord(mm[0]) == subaddr
assert ord(mm[1]) == (0x20 | idx)
dat += mm[2:]
idx += 1