diff --git a/lib/Hoymiles/src/parser/AlarmLogParser.cpp b/lib/Hoymiles/src/parser/AlarmLogParser.cpp index bad5ccfdf..10ed30528 100644 --- a/lib/Hoymiles/src/parser/AlarmLogParser.cpp +++ b/lib/Hoymiles/src/parser/AlarmLogParser.cpp @@ -96,6 +96,7 @@ AlarmLogParser::AlarmLogParser() { _xSemaphore = xSemaphoreCreateMutex(); HOY_SEMAPHORE_GIVE(); // release before first use + clearBuffer(); } void AlarmLogParser::clearBuffer() diff --git a/lib/Hoymiles/src/parser/DevInfoParser.cpp b/lib/Hoymiles/src/parser/DevInfoParser.cpp index fd22b0746..5ac187fb8 100644 --- a/lib/Hoymiles/src/parser/DevInfoParser.cpp +++ b/lib/Hoymiles/src/parser/DevInfoParser.cpp @@ -56,6 +56,8 @@ DevInfoParser::DevInfoParser() { _xSemaphore = xSemaphoreCreateMutex(); HOY_SEMAPHORE_GIVE(); // release before first use + clearBufferSimple(); + clearBufferAll(); } void DevInfoParser::clearBufferAll() diff --git a/lib/Hoymiles/src/parser/StatisticsParser.cpp b/lib/Hoymiles/src/parser/StatisticsParser.cpp index 2cbf9c846..2218ca4b1 100644 --- a/lib/Hoymiles/src/parser/StatisticsParser.cpp +++ b/lib/Hoymiles/src/parser/StatisticsParser.cpp @@ -38,6 +38,7 @@ StatisticsParser::StatisticsParser() { _xSemaphore = xSemaphoreCreateMutex(); HOY_SEMAPHORE_GIVE(); // release before first use + clearBuffer(); } void StatisticsParser::setByteAssignment(const byteAssign_t* byteAssignment, uint8_t size) diff --git a/lib/Hoymiles/src/parser/SystemConfigParaParser.cpp b/lib/Hoymiles/src/parser/SystemConfigParaParser.cpp index b2598e19f..2756e1ec8 100644 --- a/lib/Hoymiles/src/parser/SystemConfigParaParser.cpp +++ b/lib/Hoymiles/src/parser/SystemConfigParaParser.cpp @@ -16,6 +16,7 @@ SystemConfigParaParser::SystemConfigParaParser() { _xSemaphore = xSemaphoreCreateMutex(); HOY_SEMAPHORE_GIVE(); // release before first use + clearBuffer(); } void SystemConfigParaParser::clearBuffer()