refactor: Notify module driver on config changes (#3780)

This commit is contained in:
Raphael Coeffic
2023-10-01 15:19:17 +10:00
committed by GitHub
parent c0744f2af3
commit 00cb9c48df
13 changed files with 220 additions and 139 deletions
+2 -3
View File
@@ -1260,9 +1260,6 @@ void menuModelSetup(event_t event)
MODULE_SUBTYPE_R9M_LAST, EE_MODEL);
if (checkIncDec_Ret) {
g_model.moduleData[moduleIdx].pxx.power = 0;
g_model.moduleData[moduleIdx].channelsStart = 0;
g_model.moduleData[moduleIdx].channelsCount =
defaultModuleChannels_M8(moduleIdx);
}
} else {
CHECK_INCDEC_MODELVAR(event,
@@ -1274,6 +1271,8 @@ void menuModelSetup(event_t event)
g_model.moduleData[moduleIdx].channelsStart = 0;
g_model.moduleData[moduleIdx].channelsCount =
defaultModuleChannels_M8(moduleIdx);
pulsesModuleSettingsUpdate(moduleIdx);
}
}
}