Fix statistics

This commit is contained in:
Theo Arends 2019-12-11 19:30:52 +01:00
parent ad5f3ead1f
commit bfe2dc68cb
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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]);