1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-25 01:05:12 +03:00

Remove Autoconnect

This commit is contained in:
Pawel Spychalski (DzikuVx) 2019-04-27 19:24:14 +02:00
parent 7bc94e130a
commit b5db21ae7c
5 changed files with 1 additions and 64 deletions

View file

@ -121,16 +121,6 @@ PortHandler.check = function () {
$('div#port-picker #port').val(GUI.connected_to);
}
// start connect procedure (if statement is valid)
if (GUI.auto_connect && !GUI.connecting_to && !GUI.connected_to) {
// we need firmware flasher protection over here
if (GUI.active_tab != 'firmware_flasher') {
helper.timeout.add('auto-connect_timeout', function () {
$('div#port-picker a.connect').click();
}, 100); // timeout so bus have time to initialize after being detected by the system
}
}
// trigger callbacks
for (var i = (self.port_detected_callbacks.length - 1); i >= 0; i--) {
var obj = self.port_detected_callbacks[i];