mirror of https://github.com/arendst/Tasmota.git
Bring ModeSet value out of the for loop, this ModeSet is repeated for every other value on the webpage.
This commit is contained in:
parent
d4de1cd69b
commit
74d99c669a
|
@ -1336,13 +1336,16 @@ void TuyaSensorsShow(bool json)
|
|||
break;
|
||||
}
|
||||
}
|
||||
if (AsModuleTuyaMS()) {
|
||||
WSContentSend_P(PSTR("{s}" D_JSON_IRHVAC_MODE "{m}%d{e}"), Tuya.ModeSet);
|
||||
}
|
||||
|
||||
#endif // USE_WEBSERVER
|
||||
}
|
||||
}
|
||||
#ifdef USE_WEBSERVER
|
||||
if (AsModuleTuyaMS()) {
|
||||
WSContentSend_P(PSTR("{s}" D_JSON_IRHVAC_MODE "{m}%d{e}"), Tuya.ModeSet);
|
||||
}
|
||||
#endif // USE_WEBSERVER
|
||||
|
||||
if (RootName) { ResponseJsonEnd();}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue