Merge pull request #1241 from mikeller/fix_flashing_exception
Fixed exception thrown when flashing.10.5.x-maintenance
commit
5e9f34159c
|
@ -106,7 +106,7 @@ STM32_protocol.prototype.connect = function (port, baud, hex, options, callback)
|
||||||
// refresh device list
|
// refresh device list
|
||||||
PortHandler.check_usb_devices(function(dfu_available) {
|
PortHandler.check_usb_devices(function(dfu_available) {
|
||||||
if(dfu_available) {
|
if(dfu_available) {
|
||||||
STM32DFU.connect(usbDevices.STM32DFU, hex, options);
|
STM32DFU.connect(usbDevices, hex, options);
|
||||||
} else {
|
} else {
|
||||||
serial.connect(port, {bitrate: self.baud, parityBit: 'even', stopBits: 'one'}, function (openInfo) {
|
serial.connect(port, {bitrate: self.baud, parityBit: 'even', stopBits: 'one'}, function (openInfo) {
|
||||||
if (openInfo) {
|
if (openInfo) {
|
||||||
|
|
Loading…
Reference in New Issue