From 058e72811c322a0bd8410b6fb885f2e4858e085c Mon Sep 17 00:00:00 2001 From: mikeller Date: Sun, 2 Dec 2018 23:22:32 +1300 Subject: [PATCH] Fixed exception thrown when flashing. --- src/js/protocols/stm32.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/protocols/stm32.js b/src/js/protocols/stm32.js index 5c336dcc..3c4cbb55 100644 --- a/src/js/protocols/stm32.js +++ b/src/js/protocols/stm32.js @@ -106,7 +106,7 @@ STM32_protocol.prototype.connect = function (port, baud, hex, options, callback) // refresh device list PortHandler.check_usb_devices(function(dfu_available) { if(dfu_available) { - STM32DFU.connect(usbDevices.STM32DFU, hex, options); + STM32DFU.connect(usbDevices, hex, options); } else { serial.connect(port, {bitrate: self.baud, parityBit: 'even', stopBits: 'one'}, function (openInfo) { if (openInfo) {