mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-24 16:55:24 +03:00
Fix cli reconnect tab (#3494)
This commit is contained in:
parent
d143d42b4d
commit
1c06352745
1 changed files with 6 additions and 6 deletions
|
@ -593,14 +593,14 @@ cli.cleanup = function (callback) {
|
|||
// (another approach is however much more complicated):
|
||||
// we can setup an interval asking for data lets say every 200ms, when data arrives, callback will be triggered and tab switched
|
||||
// we could probably implement this someday
|
||||
if (callback) {
|
||||
callback();
|
||||
}
|
||||
|
||||
CONFIGURATOR.cliActive = false;
|
||||
CONFIGURATOR.cliValid = false;
|
||||
reinitializeConnection(function () {
|
||||
GUI.timeout_add('tab_change_callback', callback, 500);
|
||||
});
|
||||
});
|
||||
|
||||
CONFIGURATOR.cliActive = false;
|
||||
CONFIGURATOR.cliValid = false;
|
||||
|
||||
CliAutoComplete.cleanup();
|
||||
$(CliAutoComplete).off();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue