mirror of
https://github.com/arendst/Tasmota.git
synced 2025-04-24 23:07:17 +00:00
refactor in single append
This commit is contained in:
parent
8033917a36
commit
62946c22b0
@ -235,9 +235,7 @@ void sns_opentherm_stat(bool json)
|
||||
|
||||
if (json)
|
||||
{
|
||||
ResponseAppend_P(PSTR(",\"OPENTHERM\":{"));
|
||||
ResponseAppend_P(PSTR("\"conn\":\"%s\","), statusStr);
|
||||
ResponseAppend_P(PSTR("\"settings\":%d"), Settings->ot_flags);
|
||||
ResponseAppend_P(PSTR(",\"OPENTHERM\":{\"conn\":\"%s\",\"settings\":%d"), statusStr, Settings->ot_flags);
|
||||
sns_opentherm_dump_telemetry();
|
||||
ResponseJsonEnd();
|
||||
#ifdef USE_WEBSERVER
|
||||
|
Loading…
x
Reference in New Issue
Block a user