1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 14:25:20 +03:00

sort out usb api errors in canary

This commit is contained in:
cTn 2014-06-16 22:00:08 +02:00
parent f70b6f64ff
commit 0a2947b1ab
2 changed files with 8 additions and 6 deletions

View file

@ -131,7 +131,13 @@ port_handler.prototype.check = function() {
self.initial_ports = current_ports; self.initial_ports = current_ports;
} }
if (GUI.optional_usb_permissions) {
check_usb_devices(); check_usb_devices();
}
self.main_timeout_reference = setTimeout(function() {
self.check();
}, 250);
}); });
function check_usb_devices() { function check_usb_devices() {
@ -146,10 +152,6 @@ port_handler.prototype.check = function() {
$("div#port-picker .port select [value='DFU']").remove(); $("div#port-picker .port select [value='DFU']").remove();
} }
} }
self.main_timeout_reference = setTimeout(function() {
self.check();
}, 250);
}); });
} }
}; };

View file

@ -2,7 +2,7 @@ function tab_initialize_default() {
GUI.active_tab = 'default'; GUI.active_tab = 'default';
$('#content').load("./tabs/default.html", function() { $('#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 // translate to user-selected language
localize(); localize();