small fix

This commit is contained in:
Yurii
2023-12-07 22:04:13 +03:00
parent 96d506ba57
commit dbcca514b0
2 changed files with 6 additions and 9 deletions

View File

@@ -122,14 +122,11 @@ protected:
// anti memory leak // anti memory leak
yield(); yield();
if (Log.lock()) {
for (Stream* stream : Log.getStreams()) { for (Stream* stream : Log.getStreams()) {
while (stream->available() > 0) { while (stream->available() > 0) {
stream->read(); stream->read();
} }
} }
Log.unlock();
}
if (restartSignalTime > 0 && millis() - restartSignalTime > 10000) { if (restartSignalTime > 0 && millis() - restartSignalTime > 10000) {
restartSignalTime = 0; restartSignalTime = 0;

View File

@@ -144,10 +144,10 @@ protected:
} else { } else {
if (setMaxModulationLevel(settings.heating.maxModulation)) { if (setMaxModulationLevel(settings.heating.maxModulation)) {
Log.snoticeln(FPSTR(S_OT_HEATING), F("Set max modulation %d%"), settings.heating.maxModulation); Log.snoticeln(FPSTR(S_OT_HEATING), F("Set max modulation %d\%"), settings.heating.maxModulation);
} else { } else {
Log.swarningln(FPSTR(S_OT_HEATING), F("Failed set max modulation %d%"), settings.heating.maxModulation); Log.swarningln(FPSTR(S_OT_HEATING), F("Failed set max modulation %d\%"), settings.heating.maxModulation);
} }
} }
//yield(); //yield();