From 1b2648d872d3f70cfd8a0a5c71e0ca4dedc13eaa Mon Sep 17 00:00:00 2001 From: Alden-wrk <168357057+Alden-wrk@users.noreply.github.com> Date: Wed, 15 May 2024 22:19:06 +0800 Subject: [PATCH] ADD APM32 MCU USB_DFU (#524) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ADD APM32 MCU USB_DFU By modifying port_handler.js and manifest.json, you can add the VendorID and ProductID corresponding to APM32 so that it can directly support the firmware download of APM32 series MCU,https://global.geehy.com/ * Update manifest.json * Update manifest.json * Update src/js/port_handler.js --------- Co-authored-by: nerdCopter <56646290+nerdCopter@users.noreply.github.com> --- manifest.json | 4 ++++ src/js/port_handler.js | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index e68689775..fbcb5b5b1 100644 --- a/manifest.json +++ b/manifest.json @@ -37,6 +37,10 @@ { "vendorId": 10473, "productId": 393 + }, + { + "vendorId": 12619, + "productId": 262 } ] }, diff --git a/src/js/port_handler.js b/src/js/port_handler.js index 98bd65f91..cc8182ef6 100644 --- a/src/js/port_handler.js +++ b/src/js/port_handler.js @@ -4,7 +4,8 @@ const TIMEOUT_CHECK = 500; // With 250 it seems that it produces a memory leak a var usbDevices = { filters: [ {'vendorId': 1155, 'productId': 57105}, - {'vendorId': 10473, 'productId': 393} + {'vendorId': 10473, 'productId': 393}, + {'vendorId': 12619, 'productId': 262} // APM32 DFU Bootloader ] }; var PortHandler = new function () {