Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sshane committed Jun 13, 2024
1 parent faa1802 commit b65be5b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/query_fw_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
parser.add_argument("--rxoffset", default="")
parser.add_argument("--nonstandard", action="store_true")
parser.add_argument("--no-obd", action="store_true", help="Bus 1 will not be multiplexed to the OBD-II port")
parser.add_argument("--no-29bit", action="store_true", help="29 bit addresses will not be queried")
parser.add_argument("--debug", action="store_true")
parser.add_argument("--addr")
parser.add_argument("--sub_addr", "--subaddr", help="A hex sub-address or `scan` to scan the full sub-address range")
Expand All @@ -21,7 +22,8 @@
addrs = [int(args.addr, base=16)]
else:
addrs = [0x700 + i for i in range(256)]
addrs += [0x18da0000 + (i << 8) + 0xf1 for i in range(256)]
if not args.no_29bit:
addrs += [0x18da0000 + (i << 8) + 0xf1 for i in range(256)]
results = {}

sub_addrs: list[int | None] = [None]
Expand Down

0 comments on commit b65be5b

Please sign in to comment.