From 3265236fe1943a08fef3b2f36db193dfa94652be Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Mon, 18 Jan 2021 22:37:36 +0100 Subject: [PATCH] Fix compilation ESP32 --- tasmota/support_tasmota.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasmota/support_tasmota.ino b/tasmota/support_tasmota.ino index 9cac3fa37..40d5836ad 100644 --- a/tasmota/support_tasmota.ino +++ b/tasmota/support_tasmota.ino @@ -744,7 +744,8 @@ void TempHumDewShow(bool json, bool pass_on, const char *types, float f_temperat String GetSwitchText(uint32_t i) { String switch_text = SettingsText(SET_SWITCH_TXT1 + i); if ('\0' == switch_text[0]) { - switch_text = F(D_JSON_SWITCH) + String(i +1); + switch_text = F(D_JSON_SWITCH); + switch_text += String(i+1); } return switch_text; }