mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-19 14:25:14 +03:00
sort out usb api errors in canary
This commit is contained in:
parent
f70b6f64ff
commit
0a2947b1ab
2 changed files with 8 additions and 6 deletions
|
@ -131,7 +131,13 @@ port_handler.prototype.check = function() {
|
|||
self.initial_ports = current_ports;
|
||||
}
|
||||
|
||||
if (GUI.optional_usb_permissions) {
|
||||
check_usb_devices();
|
||||
}
|
||||
|
||||
self.main_timeout_reference = setTimeout(function() {
|
||||
self.check();
|
||||
}, 250);
|
||||
});
|
||||
|
||||
function check_usb_devices() {
|
||||
|
@ -146,10 +152,6 @@ port_handler.prototype.check = function() {
|
|||
$("div#port-picker .port select [value='DFU']").remove();
|
||||
}
|
||||
}
|
||||
|
||||
self.main_timeout_reference = setTimeout(function() {
|
||||
self.check();
|
||||
}, 250);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
|
|
@ -2,7 +2,7 @@ function tab_initialize_default() {
|
|||
GUI.active_tab = 'default';
|
||||
|
||||
$('#content').load("./tabs/default.html", function() {
|
||||
check_usb_permissions(); // temporary enabled in dev branch, should be commented out untill DFU support goes live
|
||||
//check_usb_permissions(); // temporary enabled in dev branch, should be commented out untill DFU support goes live
|
||||
|
||||
// translate to user-selected language
|
||||
localize();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue