diff --git a/tasmota/tasmota_support/support_command.ino b/tasmota/tasmota_support/support_command.ino index 34d6b4611..946e8c2aa 100644 --- a/tasmota/tasmota_support/support_command.ino +++ b/tasmota/tasmota_support/support_command.ino @@ -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]);