fix(colorlcd): ACCESS receivers being lost after sync with Companion (#3355)

* fixes https://github.com/EdgeTX/edgetx/issues/3273

* empty commit to trigger checks

* Companion: moved yaml tag receivers correction to yaml parserCompanion and radio: updated comments
This commit is contained in:
Michael
2023-03-23 10:45:24 +10:00
committed by GitHub
parent c391003525
commit a7688e2b04
4 changed files with 17 additions and 1 deletions
+13
View File
@@ -136,6 +136,19 @@ void postModelLoad(bool alarms)
if (is_memclear(g_model.modelRegistrationID, PXX2_LEN_REGISTRATION_ID)) {
memcpy(g_model.modelRegistrationID, g_eeGeneral.ownerRegistrationID, PXX2_LEN_REGISTRATION_ID);
}
// fix colorLCD radios not writing yaml tag receivers
ModuleData *intModule = &g_model.moduleData[INTERNAL_MODULE];
ModuleData *extModule = &g_model.moduleData[EXTERNAL_MODULE];
for(uint8_t receiverIdx = 0; receiverIdx < 3; receiverIdx++) {
if(intModule->pxx2.receiverName[receiverIdx][0])
intModule->pxx2.receivers |= (1 << receiverIdx);
if(extModule->pxx2.receiverName[receiverIdx][0])
extModule->pxx2.receivers |= (1 << receiverIdx);
}
storageDirty(EE_MODEL);
#endif
#if defined(MULTIMODULE) && defined(MULTI_PROTOLIST)