mirror of
https://github.com/Laxilef/OTGateway.git
synced 2025-12-12 03:04:27 +05:00
small fix
This commit is contained in:
@@ -122,13 +122,10 @@ 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) {
|
||||||
@@ -226,7 +223,7 @@ protected:
|
|||||||
} else if (vars.states.heating && !this->heatingEnabled) {
|
} else if (vars.states.heating && !this->heatingEnabled) {
|
||||||
this->heatingEnabled = true;
|
this->heatingEnabled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!settings.externalPump.use) {
|
if (!settings.externalPump.use) {
|
||||||
if (vars.externalPump.enable) {
|
if (vars.externalPump.enable) {
|
||||||
digitalWrite(settings.externalPump.pin, false);
|
digitalWrite(settings.externalPump.pin, false);
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user