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:
parent
b2ec904d5a
commit
1a20b317dd
3 changed files with 58 additions and 6 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue