query_fw_versions: ignore 29 bit addresses option (#1973)

fix
This commit is contained in:
Shane Smiskol 2024-06-12 19:21:38 -07:00 committed by GitHub
parent faa1802669
commit 7287ff0cbf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -10,6 +10,7 @@ if __name__ == "__main__":
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 @@ if __name__ == "__main__":
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]