1
0
Fork 0
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:
Mark Haslinghuis 2023-06-27 10:43:57 +02:00 committed by GitHub
parent d143d42b4d
commit 1c06352745
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();
};