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

@@ -20,7 +20,7 @@ lib_deps =
gyverlibs/GyverPID@^3.3
gyverlibs/GyverBlinker@^1.0
milesburton/DallasTemperature@^3.11.0
laxilef/TinyLogger@^1.0.6
laxilef/TinyLogger@^1.0.7
https://github.com/Laxilef/WiFiManager/archive/refs/heads/patch-1.zip
;https://github.com/tzapu/WiFiManager.git#v2.0.16-rc.2
build_flags =

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();