From b32a093c0c4106a990fd4c4b2b86fbe9d92580b6 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Sat, 25 Mar 2023 11:36:10 +0100 Subject: [PATCH] Fix multidigit SwitchModes display Fix multidigit SwitchModes display --- tasmota/tasmota_support/support_command.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]);