From b65be5bcc465fe7d1aa4f6f58fce3a35478aa356 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Wed, 12 Jun 2024 19:11:22 -0700 Subject: [PATCH] fix --- examples/query_fw_versions.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/query_fw_versions.py b/examples/query_fw_versions.py index fe70bf96ab..8064c86907 100755 --- a/examples/query_fw_versions.py +++ b/examples/query_fw_versions.py @@ -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") @@ -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]