fix: Send correct internal CRSF modelid on change for BW screens (#1508)

This commit is contained in:
Bryan Mayland
2022-02-01 11:36:34 +10:00
committed by GitHub
parent d427817363
commit dd672dc0ea
4 changed files with 8 additions and 5 deletions
+1 -1
View File
@@ -1422,7 +1422,7 @@ void menuModelSetup(event_t event)
CHECK_INCDEC_MODELVAR_ZERO(event, g_model.header.modelId[moduleIdx], getMaxRxNum(moduleIdx));
if (checkIncDec_Ret) {
if (isModuleCrossfire(moduleIdx))
moduleState[EXTERNAL_MODULE].counter = CRSF_FRAME_MODELID;
moduleState[moduleIdx].counter = CRSF_FRAME_MODELID;
modelHeaders[g_eeGeneral.currModel].modelId[moduleIdx] = g_model.header.modelId[moduleIdx];
}
else if (event == EVT_KEY_LONG(KEY_ENTER)) {