mirror of
https://github.com/tbnobody/OpenDTU.git
synced 2025-12-17 07:41:52 +01:00
Fix: Clear parser buffers to prevent random numbers if no data was received
This commit is contained in:
@@ -56,6 +56,8 @@ DevInfoParser::DevInfoParser()
|
||||
{
|
||||
_xSemaphore = xSemaphoreCreateMutex();
|
||||
HOY_SEMAPHORE_GIVE(); // release before first use
|
||||
clearBufferSimple();
|
||||
clearBufferAll();
|
||||
}
|
||||
|
||||
void DevInfoParser::clearBufferAll()
|
||||
|
||||
Reference in New Issue
Block a user