fix(bw): name display for customisable switches may be incorrect (#6093)

This commit is contained in:
philmoz
2025-04-16 09:48:16 +10:00
committed by GitHub
parent dfb636d4a8
commit 94965c1d09
+6 -3
View File
@@ -995,10 +995,13 @@ void menuModelSetup(event_t event)
pushMenu(menuModelCFSOne);
}
if (ZEXIST(g_model.switchNames[index]))
lcdDrawText(35, y, g_model.switchNames[index]);
else
if (ZEXIST(g_model.switchNames[index])) {
char s[LEN_SWITCH_NAME + 1];
strAppend(s, g_model.switchNames[index], LEN_SWITCH_NAME);
lcdDrawText(35, y, s);
} else {
lcdDrawMMM(35, y, 0);
}
int config = FSWITCH_CONFIG(index);
lcdDrawText(30 + 5 * FW, y, STR_SWTYPES[config]);