[colorlcd] Warn on model change if telemetry-enabled model connected (#1467)

* Warn on connected model (#1466)

* Make it so not confirming aborts model change

* add delay before accepting disconnected telemtry

* Add power off delay

* Remove whitespace + time unit in name

Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
This commit is contained in:
eshifri
2022-01-23 10:45:20 +10:00
committed by GitHub
co-authored by Peter Feerick
parent a177264759
commit 1b66af88af
3 changed files with 32 additions and 2 deletions
+2
View File
@@ -471,6 +471,8 @@ void alert(const char * title, const char * msg, uint8_t sound);
#elif defined(COLORLCD)
#define TELEMETRY_CHECK_DELAY10ms 150
bool confirmationDialog(const char *title, const char *msg, bool checkPwr = true, const std::function<bool(void)>& closeCondition = nullptr);
void raiseAlert(const char *title, const char *msg, const char *info,