fix(bw): name display for customisable switches may be incorrect (#6093)
This commit is contained in:
@@ -995,10 +995,13 @@ void menuModelSetup(event_t event)
|
|||||||
pushMenu(menuModelCFSOne);
|
pushMenu(menuModelCFSOne);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ZEXIST(g_model.switchNames[index]))
|
if (ZEXIST(g_model.switchNames[index])) {
|
||||||
lcdDrawText(35, y, g_model.switchNames[index]);
|
char s[LEN_SWITCH_NAME + 1];
|
||||||
else
|
strAppend(s, g_model.switchNames[index], LEN_SWITCH_NAME);
|
||||||
|
lcdDrawText(35, y, s);
|
||||||
|
} else {
|
||||||
lcdDrawMMM(35, y, 0);
|
lcdDrawMMM(35, y, 0);
|
||||||
|
}
|
||||||
|
|
||||||
int config = FSWITCH_CONFIG(index);
|
int config = FSWITCH_CONFIG(index);
|
||||||
lcdDrawText(30 + 5 * FW, y, STR_SWTYPES[config]);
|
lcdDrawText(30 + 5 * FW, y, STR_SWTYPES[config]);
|
||||||
|
|||||||
Reference in New Issue
Block a user