From cf35bd61428a8ada640898bcd81bc79909659e7d Mon Sep 17 00:00:00 2001 From: "Ernest Stepanov (ErNis)" Date: Thu, 2 Feb 2023 15:05:34 +0200 Subject: [PATCH] AT32 MCU DFU added --- js/port_handler.js | 9 ++++++--- js/protocols/stm32.js | 2 +- js/protocols/stm32usbdfu.js | 7 +++++++ manifest.json | 3 ++- tabs/firmware_flasher.js | 2 +- 5 files changed, 17 insertions(+), 6 deletions(-) diff --git a/js/port_handler.js b/js/port_handler.js index 58e464fdf..2dc395fd2 100755 --- a/js/port_handler.js +++ b/js/port_handler.js @@ -1,7 +1,10 @@ 'use strict'; var usbDevices = { - STM32DFU: {'vendorId': 1155, 'productId': 57105} + filters: [ + {'vendorId': 1155, 'productId': 57105}, + {'vendorId': 11836, 'productId': 57105} + ] }; var PortHandler = new function () { @@ -152,7 +155,7 @@ PortHandler.check = function () { }; PortHandler.check_usb_devices = function (callback) { - chrome.usb.getDevices(usbDevices.STM32DFU, function (result) { + chrome.usb.getDevices(usbDevices, function (result) { if (result.length) { if (!$("div#port-picker #port [value='DFU']").length) { $('div#port-picker #port').append($('