mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-19 06:15:13 +03:00
Auto merged - #2561 at Sun, 26 Sep 2021 00:17:14 GMT
Fix reconnection issue in cli
This commit is contained in:
commit
b93805154c
4 changed files with 29 additions and 24 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue