bump TinyLogger to 1.0.5

This commit is contained in:
Yurii
2023-11-29 18:47:16 +03:00
parent 10df1c1d34
commit 40d9606bea
3 changed files with 4 additions and 7 deletions

View File

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

View File

@@ -109,8 +109,6 @@ protected:
// anti memory leak // anti memory leak
for (Stream* stream : Log.getStreams()) { for (Stream* stream : Log.getStreams()) {
stream->flush();
while (stream->available()) { while (stream->available()) {
stream->read(); stream->read();
yield(); yield();

View File

@@ -631,6 +631,7 @@ protected:
if (settings.debug) { if (settings.debug) {
Log.strace("MQTT.MSG", F("Topic: %s\r\n> "), topic); Log.strace("MQTT.MSG", F("Topic: %s\r\n> "), topic);
Log.lock();
for (unsigned int i = 0; i < length; i++) { for (unsigned int i = 0; i < length; i++) {
if ( payload[i] == 10 ) { if ( payload[i] == 10 ) {
Log.print("\r\n> "); Log.print("\r\n> ");
@@ -640,10 +641,8 @@ protected:
} }
} }
Log.print("\r\n\n"); Log.print("\r\n\n");
Log.unlock();
for (Stream* stream : Log.getStreams()) { Log.flush();
stream->flush();
}
} }
StaticJsonDocument<2048> doc; StaticJsonDocument<2048> doc;