mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-19 14:25:14 +03:00
Disable Exit DFU Button when no needed
add interval function sonar issue change Timer method to port change detect fixing white space
This commit is contained in:
parent
6d1a4fd1d0
commit
35d129c8d6
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