Fix: Clear parser buffers to prevent random numbers if no data was received

This commit is contained in:
Thomas Basler
2023-07-31 22:52:38 +02:00
parent 2eeb7423bf
commit 5bbc67bc49
4 changed files with 5 additions and 0 deletions

View File

@@ -56,6 +56,8 @@ DevInfoParser::DevInfoParser()
{
_xSemaphore = xSemaphoreCreateMutex();
HOY_SEMAPHORE_GIVE(); // release before first use
clearBufferSimple();
clearBufferAll();
}
void DevInfoParser::clearBufferAll()