From fee9473cacf69dd6530a60d4e93c5813948714ce Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Wed, 2 Nov 2022 01:23:23 +0100 Subject: [PATCH] Improved rnodeconf timings --- RNS/Utilities/rnodeconf.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/RNS/Utilities/rnodeconf.py b/RNS/Utilities/rnodeconf.py index 6ecf3a9..ba97323 100644 --- a/RNS/Utilities/rnodeconf.py +++ b/RNS/Utilities/rnodeconf.py @@ -2178,7 +2178,6 @@ def main(): RNS.log("Bootstrapping device EEPROM...") - rnode.hard_reset() rnode.write_eeprom(ROM.ADDR_PRODUCT, mapped_product) time.sleep(0.006) @@ -2216,16 +2215,15 @@ def main(): RNS.log("EEPROM written! Validating...") if wants_fw_provision: - RNS.log("Getting partition data...") partition_filename = fw_filename.replace(".zip", ".bin") partition_hash = get_partition_hash(UPD_DIR+"/"+selected_version+"/"+partition_filename) if partition_hash != None: - RNS.log("Setting firmware partition hash target") rnode.set_firmware_hash(partition_hash) + rnode.hard_reset() if rnode.platform == ROM.PLATFORM_ESP32: RNS.log("Waiting for ESP32 reset...") - time.sleep(5) + time.sleep(6.5) rnode.download_eeprom() if rnode.provisioned: