From a04cb5de15fe88de2b152d324838b31145122ba4 Mon Sep 17 00:00:00 2001 From: kgn Date: Wed, 31 Jan 2024 16:29:42 -0500 Subject: [PATCH] Wait on address jump --- src/server/lib/Firmware/Flashing/DFUFlasher.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/server/lib/Firmware/Flashing/DFUFlasher.js b/src/server/lib/Firmware/Flashing/DFUFlasher.js index 642d5c1e2..0f3edcf1a 100644 --- a/src/server/lib/Firmware/Flashing/DFUFlasher.js +++ b/src/server/lib/Firmware/Flashing/DFUFlasher.js @@ -57,6 +57,8 @@ class DFUFlasher extends events.EventEmitter { log.info(`Jumping back to start address ${startAddress} to manifest`); await this.sendDFUCommand(this.SET_ADDRESS, startAddress, 4); + const status = await this.dfu.getStatus(); + log.info(status); await this.dfu.download(new ArrayBuffer(0), 0); try { await this.dfu.pollUntil(state => (state === this.dfu.dfuMANIFEST));