1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-13 11:29:53 +03:00

DFU: Add additional error checks, enabled GUI connect lock while flashing

This commit is contained in:
Michael Corcoran 2015-10-09 18:48:10 +13:00
parent b2ec904d5a
commit 1a20b317dd
3 changed files with 58 additions and 6 deletions

View file

@ -106,7 +106,6 @@ STM32_protocol.prototype.connect = function (port, baud, hex, options, callback)
// refresh device list
PortHandler.check_usb_devices(function(dfu_available) {
if(dfu_available) {
GUI.connect_lock = false;
STM32DFU.connect(usbDevices.STM32DFU, hex, options);
} else {
serial.connect(port, {bitrate: self.baud, parityBit: 'even', stopBits: 'one'}, function (openInfo) {