feat: Prevent OFF for internal module in hardware settings (#2654)

* Prevent OFF for internal module in hardware settings

* chore: Change "Mode" to "Type"
This commit is contained in:
Raphael Coeffic
2022-10-31 13:39:42 +10:00
committed by GitHub
parent b61e2d8dda
commit 93ec316a4b
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ InternalModuleWindow::InternalModuleWindow(Window *parent) :
FlexGridLayout grid(col_dsc, row_dsc, 2);
setLayout(&grid);
new StaticText(this, rect_t{}, STR_MODE, 0, COLOR_THEME_PRIMARY1);
new StaticText(this, rect_t{}, STR_TYPE, 0, COLOR_THEME_PRIMARY1);
auto box = new FormGroup(this, rect_t{});
box->setFlexLayout(LV_FLEX_FLOW_ROW, lv_dpx(8));
-1
View File
@@ -737,7 +737,6 @@ bool areModulesConflicting(int intModuleType, int extModuleType)
bool isInternalModuleSupported(int moduleType)
{
switch(moduleType) {
case MODULE_TYPE_NONE: return true;
#if defined(INTERNAL_MODULE_MULTI)
case MODULE_TYPE_MULTIMODULE: return true;
#endif