Allow hex letters in suffix. (Seen in aviation firmwares.)

This commit is contained in:
Markus Birth 2021-03-19 16:27:01 +01:00
parent 765b8c12df
commit 82b2a4c2f8
Signed by: mbirth
GPG Key ID: A9928D7A098C3A9A

View File

@ -12,7 +12,7 @@ from grmn import devices
FILE = sys.argv[1]
pattern = re.compile(rb"006-?B\d\d\d\d-?\d\d")
pattern = re.compile(rb"006-?B\d\d\d\d-?[0-9A-F]{2}")
print("Reading {} ...".format(FILE))
with open(FILE, "rb") as f: