1
0
Fork 0
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:
Asizon 2020-03-22 14:55:38 +01:00
parent 6d1a4fd1d0
commit 35d129c8d6
2 changed files with 6 additions and 1 deletions

View file

@ -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');
}
});
};

View file

@ -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 {