Compare commits

...

2 Commits

Author SHA1 Message Date
Chad Attermann
33635372d8
Merge 1cee0a2619 into 30228d12f7 2024-05-30 10:18:17 -06:00
Chad Attermann
1cee0a2619 Fix for broken --rom manual device provisioning
Initializes `selected_model` with the value of model specified on the
command line.
2024-05-29 09:04:14 -06:00

View File

@ -3310,6 +3310,8 @@ def main():
if len(args.model) == 2: if len(args.model) == 2:
model = ord(bytes.fromhex(args.model)) model = ord(bytes.fromhex(args.model))
# Initialize selected_model from specified model
selected_model = model
if args.hwrev != None and (args.hwrev > 0 and args.hwrev < 256): if args.hwrev != None and (args.hwrev > 0 and args.hwrev < 256):
hwrev = chr(args.hwrev) hwrev = chr(args.hwrev)