1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-19 06:15:13 +03:00

Fix reconnection issue in cli

This commit is contained in:
Mark Haslinghuis 2021-08-12 22:55:14 +02:00
parent 2d268ee115
commit 7f9e15878c
No known key found for this signature in database
GPG key ID: 198B0F616296A584
4 changed files with 29 additions and 24 deletions

View file

@ -66,7 +66,7 @@ function initializeSerialBackend() {
$('select#baud').hide();
} else if (portName !== '0') {
if (!clicks) {
console.log(`${serial.connectionType}: connecting to: ${portName}`);
console.log(`Connecting to: ${portName}`);
GUI.connecting_to = portName;
// lock port select & baud while we are connecting / connected
@ -90,8 +90,7 @@ function initializeSerialBackend() {
}
GUI.timeout_kill_all();
GUI.interval_kill_all();
GUI.tab_switch_cleanup();
GUI.tab_switch_in_progress = false;
GUI.tab_switch_cleanup(() => GUI.tab_switch_in_progress = false);
function onFinishCallback() {
finishClose(toggleStatus);