Fix JSON output (#21084)

This commit is contained in:
Theo Arends 2024-04-02 16:49:24 +02:00
parent 34d6bffe7a
commit 52344d2cc7
1 changed files with 1 additions and 1 deletions

View File

@ -267,7 +267,7 @@ void Sgp4xShow(bool json)
if (sgp4x_type == TYPE_SGP41) {
ResponseAppend_P(PSTR(",\"SGP41\":{\"VOC_" D_JSON_RAW "\":%d,\"NOX_" D_JSON_RAW "\":%d,\"" D_TVOC "\":%d,\"" D_NOX "\":%d"), srawVoc, srawNox, voc_index_sgp4x, nox_index_sgp4x);
} else {
ResponseAppend_P(PSTR(",\"SGP40\":{\"VOC_" D_JSON_RAW "\":%d,,\"" D_TVOC "\":%d,"), srawVoc, voc_index_sgp4x);
ResponseAppend_P(PSTR(",\"SGP40\":{\"VOC_" D_JSON_RAW "\":%d,\"" D_TVOC "\":%d"), srawVoc, voc_index_sgp4x);
}
ResponseJsonEnd();
#ifdef USE_DOMOTICZ