Fix compilation ESP32

This commit is contained in:
Stephan Hadinger 2021-01-18 22:37:36 +01:00
parent b55fdcef75
commit 3265236fe1

View File

@ -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;
}