mirror of
https://github.com/opentx/opentx.git
synced 2025-07-26 09:45:21 +03:00
Only one popup in case authentication fails
This commit is contained in:
parent
7f06c06e84
commit
13a6864905
1 changed files with 4 additions and 1 deletions
|
@ -228,7 +228,10 @@ void processAuthenticationFrame(uint8_t module, uint8_t * frame)
|
||||||
uint8_t messageDigest[16] = {0};
|
uint8_t messageDigest[16] = {0};
|
||||||
|
|
||||||
if (frame[0] == 4 && PXX2_AUTH_REFUSED_FLAG == frame[4]) {
|
if (frame[0] == 4 && PXX2_AUTH_REFUSED_FLAG == frame[4]) {
|
||||||
POPUP_INFORMATION(STR_AUTH_FAILURE);
|
if (!globalData.authenticationPopup) {
|
||||||
|
globalData.authenticationPopup = 1;
|
||||||
|
POPUP_INFORMATION(STR_AUTH_FAILURE);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue