Fix multidigit SwitchModes display

Fix multidigit SwitchModes display
This commit is contained in:
Theo Arends 2023-03-25 11:36:10 +01:00
parent 5bb624ad09
commit b32a093c0c

View File

@ -2156,7 +2156,7 @@ void CmndSwitchMode(void) {
Settings->switchmode[i] = XdrvMailbox.payload;
}
}
char stemp[MAX_SWITCHES_SET * 3];
char stemp[MAX_SWITCHES_SET * 4];
stemp[0] = '\0';
for (uint32_t i = 0; i < MAX_SWITCHES_SET; i++) {
snprintf_P(stemp, sizeof(stemp), PSTR("%s%s%d" ), stemp, (i > 0 ? "," : "["), Settings->switchmode[i]);