Re-add receiver ID

Fixes #2146
This commit is contained in:
Raphael Coeffic
2022-08-18 12:38:35 +10:00
committed by Peter Feerick
parent e6dc23b77f
commit 00630277a8
+7
View File
@@ -333,6 +333,13 @@ void ModuleWindow::updateModule()
new pxx2::ModuleOptions(Layer::back(), moduleIdx);
return 0;
});
// Model index
line = newLine(&grid);
new StaticText(line, rect_t{}, STR_RECEIVER_NUM, 0, COLOR_THEME_PRIMARY1);
auto modelId = &g_model.header.modelId[moduleIdx];
new NumberEdit(line, rect_t{}, 0, getMaxRxNum(moduleIdx),
GET_SET_DEFAULT(*modelId));
}
#endif