mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-23 16:25:22 +03:00
Merge pull request #1935 from Asizon/exitDfuButtonFixes
Disabled "Exit DFU Button" when no needed
This commit is contained in:
commit
c35bcbba46
2 changed files with 6 additions and 1 deletions
|
@ -166,6 +166,10 @@ PortHandler.check_usb_devices = function (callback) {
|
|||
}
|
||||
|
||||
if(callback) callback(self.dfu_available);
|
||||
|
||||
if (!$('option:selected', portPickerElement).data().isDFU) {
|
||||
portPickerElement.trigger('change');
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
@ -1054,6 +1054,7 @@ TABS.firmware_flasher.initialize = function (callback) {
|
|||
}
|
||||
|
||||
function startFlashing() {
|
||||
exitDfuElement.addClass('disabled');
|
||||
if (!GUI.connect_lock) { // button disabled while flashing is in progress
|
||||
if (self.parsed_hex) {
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue