1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-16 12:55:14 +03:00

Fixed exception thrown when flashing.

This commit is contained in:
mikeller 2018-12-02 23:22:32 +13:00
parent 6f314dd1bb
commit 058e72811c

View file

@ -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) {