Reset ISRM upgrade moduel counter reset when mode is changed (#7425)
Reset authentication counter on ISRM mode change
This commit is contained in:
@@ -56,8 +56,13 @@ bool menuRadioSpectrumAnalyser(event_t event)
|
||||
if (menuEvent) {
|
||||
lcdDrawCenteredText(LCD_H / 2, STR_STOPPING);
|
||||
lcdRefresh();
|
||||
if (isModulePXX2(g_moduleIdx))
|
||||
if (isModulePXX2(g_moduleIdx)) {
|
||||
moduleState[g_moduleIdx].readModuleInformation(&reusableBuffer.moduleSetup.pxx2.moduleInformation, PXX2_HW_INFO_TX_ID, PXX2_HW_INFO_TX_ID);
|
||||
#if defined(ACCESS_LIB)
|
||||
// the module will reset on mode switch, we need to reset the authentication counter
|
||||
globalData.authenticationCount = 0;
|
||||
#endif
|
||||
}
|
||||
else if (isModuleMultimodule(g_moduleIdx)) {
|
||||
if (reusableBuffer.spectrumAnalyser.moduleOFF)
|
||||
setModuleType(INTERNAL_MODULE, MODULE_TYPE_NONE);
|
||||
|
||||
Reference in New Issue
Block a user