From e5427d70aca20633a9682a33f796488d796ca8cc Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Wed, 27 Mar 2024 21:48:32 +0100 Subject: [PATCH] Added custom EEPROM bootstrap to rnodeconf --- RNS/Utilities/rnodeconf.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/RNS/Utilities/rnodeconf.py b/RNS/Utilities/rnodeconf.py index 55eeaa5..f927a70 100755 --- a/RNS/Utilities/rnodeconf.py +++ b/RNS/Utilities/rnodeconf.py @@ -3041,10 +3041,13 @@ def main(): 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: @@ -3068,6 +3071,9 @@ def main(): 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):