From 4946a8a71a10d3bc85a6dff14c9f50ee4900fdcc Mon Sep 17 00:00:00 2001 From: liamcottle Date: Wed, 24 Jul 2024 20:26:12 +1200 Subject: [PATCH] add support for flashing esp32 devices --- index.html | 293 +++++++++++++++++++++++++++++++++++++------ nrf52_dfu_flasher.js | 4 - 2 files changed, 255 insertions(+), 42 deletions(-) diff --git a/index.html b/index.html index 3d8bd86..24dae80 100644 --- a/index.html +++ b/index.html @@ -26,6 +26,7 @@
+
@@ -39,15 +40,43 @@
- 1. Put device into DFU Mode + 1. Select your device
+ +
+
Product
+ +
+ +
+
Model
+ +
+ +
+ + +
+
+
+ Can't find your device? Open an issue on + GitHub +
+
+
@@ -58,18 +87,11 @@
-
-
- * - Only RAK4631 can be flashed at this time, ESP32 support is coming later. -
-
-
-
+
@@ -103,27 +125,9 @@
- -
-
Product
- -
-
-
Model
- -
-
- -
- +
@@ -220,6 +224,13 @@
+ + + diff --git a/nrf52_dfu_flasher.js b/nrf52_dfu_flasher.js index 0bcf54b..3065461 100644 --- a/nrf52_dfu_flasher.js +++ b/nrf52_dfu_flasher.js @@ -178,10 +178,6 @@ class Nrf52DfuFlasher { console.log("Sending firmware"); await this.sendFirmware(firmware, progressCallback); - // close port - console.log("Closing serial port"); - await this.serialPort.close(); - // todo // sleep(self.dfu_transport.get_activate_wait_time())