From bfe2dc68cba880961ac4c18cb6512d0903c08172 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Wed, 11 Dec 2019 19:30:52 +0100 Subject: [PATCH] Fix statistics --- tasmota/settings.h | 2 +- tasmota/support_statistics.ino | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/tasmota/settings.h b/tasmota/settings.h index 524a6ac19..c938f0b39 100644 --- a/tasmota/settings.h +++ b/tasmota/settings.h @@ -437,7 +437,7 @@ struct SYSCFG { uint8_t web_color2[2][3]; // EA0 - Needs to be on integer / 3 distance from web_color char cors_domain[33]; // EA6 - uint8_t free_ec1[293]; // EC1 + uint8_t free_ec7[293]; // EC7 uint32_t i2c_drivers[3]; // FEC I2cDriver uint32_t cfg_timestamp; // FF8 diff --git a/tasmota/support_statistics.ino b/tasmota/support_statistics.ino index 3239c5b93..efd94f307 100644 --- a/tasmota/support_statistics.ino +++ b/tasmota/support_statistics.ino @@ -43,6 +43,9 @@ void StatisticsChar(const char* text) String GetStatistics(void) { + Stats.str_len = 0; + Stats.str_char = 0; + for (uint32_t i = 0; i < 2; i++) { StatisticsChar(Settings.sta_ssid[i]); StatisticsChar(Settings.sta_pwd[i]);