Fix exception 28 due to regression from 6.5.0.1 (#5822)

Fix exception 28 due to regression from 6.5.0.1 (#5822)
This commit is contained in:
Theo Arends 2019-05-19 12:07:20 +02:00
parent 292efcc358
commit ef9f0f6453
1 changed files with 2 additions and 2 deletions

View File

@ -149,9 +149,9 @@ void SenseairShow(bool json)
GetTextIndexed(senseair_types, sizeof(senseair_types), senseair_type -1, kSenseairTypes);
if (json) {
ResponseAppend_P(PSTR("%s,\"%s\":{\"" D_JSON_CO2 "\":%d"), senseair_types, senseair_co2);
ResponseAppend_P(PSTR(",\"%s\":{\"" D_JSON_CO2 "\":%d"), senseair_types, senseair_co2);
if (senseair_type != 2) {
ResponseAppend_P(PSTR("%s,\"" D_JSON_TEMPERATURE "\":%s,\"" D_JSON_HUMIDITY "\":%s"), temperature, humidity);
ResponseAppend_P(PSTR(",\"" D_JSON_TEMPERATURE "\":%s,\"" D_JSON_HUMIDITY "\":%s"), temperature, humidity);
}
ResponseJsonEnd();
#ifdef USE_DOMOTICZ