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
+4 -1
View File
@@ -714,11 +714,14 @@ static void update_module_window(lv_event_t* e)
ModuleWindow* mw = (ModuleWindow*)lv_event_get_user_data(e);
if (!mw) return;
if (isModuleISRM(mw->getModuleIdx())) {
auto module = mw->getModuleIdx();
if (isModuleISRM(module)) {
mw->updateModule();
} else {
mw->updateSubType();
}
pulsesModuleSettingsUpdate(module);
}
ModulePage::ModulePage(uint8_t moduleIdx) : Page(ICON_MODEL_SETUP)