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

CF/BF - Prevent exceptions that result in a white content panel occuring

when unplugging USB cable while in CLI mode.

Note: Various different exception scenarious were encountered in testing, the main solution seemed to be not trying to send when disconnected (!).  Other state  related issues were found along the way.
This commit is contained in:
Hydra 2017-04-15 21:40:04 +01:00 committed by Michael Keller
parent 9bf9132772
commit fb64fa0d61
3 changed files with 24 additions and 2 deletions

View file

@ -340,6 +340,7 @@ function onClosed(result) {
MSP.clearListeners();
CONFIGURATOR.connectionValid = false;
CONFIGURATOR.cliValid = false;
CONFIGURATOR.cliActive = false;
}