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
+4 -1
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;
}