bump TinyLogger to 1.0.7

This commit is contained in:
Yurii
2023-12-01 14:36:06 +03:00
parent ff91e328cb
commit e379df388c
2 changed files with 3 additions and 4 deletions

View File

@@ -108,8 +108,7 @@ protected:
heap();
// anti memory leak
if (!Log.isLocked()) {
Log.lock();
if (Log.lock()) {
for (Stream* stream : Log.getStreams()) {
while (stream->available() > 0) {
stream->read();
@@ -117,7 +116,7 @@ protected:
}
Log.unlock();
}
if (restartSignalTime > 0 && millis() - restartSignalTime > 10000) {
restartSignalTime = 0;
ESP.restart();