From 282891fd27b5e610e170421a2168b97dc2a277c4 Mon Sep 17 00:00:00 2001 From: Paul Date: Sun, 13 Oct 2019 17:30:22 +0200 Subject: [PATCH] dont clear json doc on each HC - https://github.com/proddy/EMS-ESP/issues/162 --- src/ems-esp.cpp | 2 +- src/version.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ems-esp.cpp b/src/ems-esp.cpp index 27770374d..1f5e9a96f 100644 --- a/src/ems-esp.cpp +++ b/src/ems-esp.cpp @@ -665,6 +665,7 @@ void publishValues(bool force) { last_boilerActive = ((EMS_Boiler.tapwaterActive << 1) + EMS_Boiler.heatingActive); // remember last state } + doc.clear(); // handle the thermostat values if (ems_getThermostatEnabled()) { for (uint8_t hc_v = 1; hc_v <= EMS_THERMOSTAT_MAXHC; hc_v++) { @@ -673,7 +674,6 @@ void publishValues(bool force) { // only send if we have an active Heating Circuit with real data if (thermostat->active) { // build new json object - doc.clear(); JsonObject rootThermostat = doc.to(); // hc{1-4} diff --git a/src/version.h b/src/version.h index fed8d4cf9..6e4a789cb 100644 --- a/src/version.h +++ b/src/version.h @@ -1 +1 @@ -#define APP_VERSION "1.9.2b6" +#define APP_VERSION "1.9.2b7"