Skip to content

Commit 45182b4

Browse files
calvinparkpd0wm
andauthored
Handle panda.can_recv() returning either 3 or 4 items in the tuple (#8)
* Allow panda.can_recv() to return either 3 or 4 items in the tuple * Update extract_keys.py Co-authored-by: Willem Melching <willem.melching@gmail.com> * Update extract_keys.py --------- Co-authored-by: Willem Melching <willem.melching@gmail.com>
1 parent 49b88b7 commit 45182b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extract_keys.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def get_secoc_key(key_struct):
191191
with open(f'data_{start:08x}_{end:08x}.bin', 'wb') as f:
192192
with tqdm(total=end-start) as pbar:
193193
while start < end:
194-
for addr, data, bus in panda.can_recv():
194+
for addr, *_, data, bus in panda.can_recv():
195195
if bus != BUS:
196196
continue
197197

0 commit comments

Comments
 (0)