Better fix
This commit is contained in:
@@ -124,14 +124,6 @@ bool menuRadioModulesVersion(event_t event)
|
|||||||
if (variant < DIM(variants)) {
|
if (variant < DIM(variants)) {
|
||||||
lcdDrawText(lcdNextPos + 1, y, variants[variant]);
|
lcdDrawText(lcdNextPos + 1, y, variants[variant]);
|
||||||
}
|
}
|
||||||
if (!globalData.upgradeModulePopup &&
|
|
||||||
reusableBuffer.hardwareAndSettings.modules[module].information.modelID == PXX2_MODULE_ISRM_S_X10S &&
|
|
||||||
reusableBuffer.hardwareAndSettings.modules[module].information.swVersion.major == 0 &&
|
|
||||||
reusableBuffer.hardwareAndSettings.modules[module].information.swVersion.minor == 1 &&
|
|
||||||
reusableBuffer.hardwareAndSettings.modules[module].information.swVersion.revision < 5) {
|
|
||||||
globalData.upgradeModulePopup = 1;
|
|
||||||
POPUP_WARNING(STR_MODULE_UPGRADE);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
y += FH;
|
y += FH;
|
||||||
|
|||||||
@@ -224,19 +224,10 @@ bool menuMainView(event_t event)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if defined(HARDWARE_INTERNAL_MODULE) && defined(INTERNAL_MODULE_PXX2) && defined(ACCESS_LIB)
|
#if defined(HARDWARE_INTERNAL_MODULE) && defined(INTERNAL_MODULE_PXX2) && defined(ACCESS_LIB)
|
||||||
if (globalData.authenticationCount > 0 && !globalData.upgradeModulePopup) {
|
if (globalData.authenticationCount > 0 && !globalData.upgradeModulePopup && !globalData.internalModuleVersionChecked) {
|
||||||
if (!globalData.internalModuleVersionChecked) {
|
globalData.internalModuleVersionChecked = 1;
|
||||||
globalData.internalModuleVersionChecked = 1;
|
memclear(&reusableBuffer.viewMain.internalModule, sizeof(reusableBuffer.viewMain.internalModule));
|
||||||
memclear(&reusableBuffer.viewMain.internalModule, sizeof(reusableBuffer.viewMain.internalModule));
|
moduleState[INTERNAL_MODULE].readModuleInformation(&reusableBuffer.viewMain.internalModule, PXX2_HW_INFO_TX_ID, PXX2_HW_INFO_TX_ID);
|
||||||
moduleState[INTERNAL_MODULE].readModuleInformation(&reusableBuffer.viewMain.internalModule, PXX2_HW_INFO_TX_ID, PXX2_HW_INFO_TX_ID);
|
|
||||||
}
|
|
||||||
else if (reusableBuffer.viewMain.internalModule.information.modelID == PXX2_MODULE_ISRM_S_X10S &&
|
|
||||||
reusableBuffer.viewMain.internalModule.information.swVersion.major == 0 &&
|
|
||||||
reusableBuffer.viewMain.internalModule.information.swVersion.minor == 1 &&
|
|
||||||
reusableBuffer.viewMain.internalModule.information.swVersion.revision < 5) {
|
|
||||||
globalData.upgradeModulePopup = 1;
|
|
||||||
POPUP_WARNING(STR_MODULE_UPGRADE);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -35,6 +35,11 @@ void processGetHardwareInfoFrame(uint8_t module, const uint8_t * frame)
|
|||||||
memcpy(&destination->information, &frame[4], length);
|
memcpy(&destination->information, &frame[4], length);
|
||||||
if (destination->information.capabilities & ~((1 << MODULE_CAPABILITY_COUNT) - 1))
|
if (destination->information.capabilities & ~((1 << MODULE_CAPABILITY_COUNT) - 1))
|
||||||
destination->information.capabilityNotSupported = true;
|
destination->information.capabilityNotSupported = true;
|
||||||
|
if (!globalData.upgradeModulePopup && destination->information.modelID == PXX2_MODULE_ISRM_S_X10S &&
|
||||||
|
destination->information.swVersion.major == 0 && destination->information.swVersion.minor == 1 && destination->information.swVersion.revision < 5) {
|
||||||
|
globalData.upgradeModulePopup = 1;
|
||||||
|
POPUP_WARNING(STR_MODULE_UPGRADE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (index < PXX2_MAX_RECEIVERS_PER_MODULE && modelId < DIM(PXX2ReceiversNames)) {
|
else if (index < PXX2_MAX_RECEIVERS_PER_MODULE && modelId < DIM(PXX2ReceiversNames)) {
|
||||||
memcpy(&destination->receivers[index].information, &frame[4], length);
|
memcpy(&destination->receivers[index].information, &frame[4], length);
|
||||||
|
|||||||
Reference in New Issue
Block a user