1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-17 05:15:20 +03:00

Update serial_backend.js

This commit is contained in:
breadoven 2022-03-09 17:08:05 +00:00
parent daa4d55f5c
commit dc4f51e6db

View file

@ -130,7 +130,14 @@ $(document).ready(function () {
helper.interval.killAll(['global_data_refresh', 'msp-load-update']);
helper.mspBalancedInterval.flush();
if (CONFIGURATOR.cliActive) {
GUI.tab_switch_cleanup(finishDisconnect);
} else {
GUI.tab_switch_cleanup();
finishDisconnect();
}
function finishDisconnect() {
GUI.tab_switch_in_progress = false;
CONFIGURATOR.connectionValid = false;
GUI.connected_to = false;
@ -169,6 +176,7 @@ $(document).ready(function () {
$('#tabs .tab_landing a').click();
}
}
$(this).data("clicks", !clicks);
}