Skip to content

Commit

Permalink
Added custom EEPROM bootstrap to rnodeconf
Browse files Browse the repository at this point in the history
  • Loading branch information
markqvist committed Mar 27, 2024
1 parent 2f5381b commit e5427d7
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions RNS/Utilities/rnodeconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -3041,10 +3041,13 @@ def get_flasher_call(platform, fw_filename):
if args.product != None:
if args.product == "03":
mapped_product = ROM.PRODUCT_RNODE
if args.product == "f0":
elif args.product == "f0":
mapped_product = ROM.PRODUCT_HMBRW
if args.product == "e0":
elif args.product == "e0":
mapped_product = ROM.PRODUCT_TBEAM
else:
if len(args.product) == 2:
mapped_product = bytes.fromhex(args.product)

if mapped_model != None:
if mapped_model == ROM.MODEL_B4_TCXO:
Expand All @@ -3068,6 +3071,9 @@ def get_flasher_call(platform, fw_filename):
model = ROM.MODEL_E9
elif args.model == "ff":
model = ROM.MODEL_FF
else:
if len(args.model) == 2:
model = bytes.fromhex(args.model)


if args.hwrev != None and (args.hwrev > 0 and args.hwrev < 256):
Expand Down

0 comments on commit e5427d7

Please sign in to comment.