Reset ISRM upgrade moduel counter reset when mode is changed (#7425)

Reset authentication counter on ISRM mode change
This commit is contained in:
3djc
2020-03-07 10:47:10 +01:00
committed by GitHub
parent ec56892de6
commit 6b5f6bc817
3 changed files with 14 additions and 1 deletions
+4
View File
@@ -1018,6 +1018,10 @@ bool menuModelSetup(event_t event)
uint8_t moduleType = checkIncDec(event, g_model.moduleData[INTERNAL_MODULE].type, MODULE_TYPE_NONE, MODULE_TYPE_MAX, EE_MODEL, isInternalModuleAvailable);
if (checkIncDec_Ret) {
setModuleType(INTERNAL_MODULE, moduleType);
#if defined(ACCESS_LIB)
// the module will reset on mode switch, we need to reset the authentication counter
globalData.authenticationCount = 0;
#endif
}
}
else if (isModuleXJT(INTERNAL_MODULE)) {