1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-24 00:35:18 +03:00

Only one popup in case authentication fails

This commit is contained in:
Bertrand Songis 2019-11-22 11:15:41 +01:00
parent 7f06c06e84
commit 13a6864905
No known key found for this signature in database
GPG key ID: F189F79290FEC50F

View file

@ -228,7 +228,10 @@ void processAuthenticationFrame(uint8_t module, uint8_t * frame)
uint8_t messageDigest[16] = {0};
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;
}