feat: Show module info for MPM and CRSF on Radio Version screen (#1771)

* Show module info for MPM and CRSF

* Consider MPM only if MULTIMODULE is defined

* Consider MPM only if MULTIMODULE is defined
This commit is contained in:
Risto
2022-04-01 10:52:08 +10:00
committed by GitHub
parent 8a988b7f88
commit c9594390e2
2 changed files with 35 additions and 23 deletions
+2
View File
@@ -113,12 +113,14 @@ class versionDialog: public Dialog
new StaticText(form, grid->getFieldSlot(2, 1), statusText, 0, COLOR_THEME_PRIMARY1);
}
#endif
#if defined(MULTIMODULE)
else if (isModuleMultimodule(module)) {
char statusText[64] = "";
new StaticText(form, grid->getFieldSlot(2, 0), "Multimodule", 0, COLOR_THEME_PRIMARY1);
getMultiModuleStatus(module).getStatusString(statusText);
new StaticText(form, grid->getFieldSlot(2, 1), statusText, 0, COLOR_THEME_PRIMARY1);
}
#endif
else if (!isModulePXX2(module)) {
new StaticText(form, grid->getFieldSlot(1, 0), STR_NO_INFORMATION, 0, COLOR_THEME_PRIMARY1);
}