mirror of
https://github.com/Laxilef/OTGateway.git
synced 2025-12-11 18:54:28 +05:00
refactor: more logs
This commit is contained in:
@@ -185,7 +185,11 @@ protected:
|
|||||||
);
|
);
|
||||||
|
|
||||||
if (!CustomOpenTherm::isValidResponse(response)) {
|
if (!CustomOpenTherm::isValidResponse(response)) {
|
||||||
Log.swarningln(FPSTR(L_OT), F("Invalid response after setBoilerStatus: %s"), CustomOpenTherm::statusToString(this->instance->getLastResponseStatus()));
|
Log.swarningln(
|
||||||
|
FPSTR(L_OT),
|
||||||
|
F("Failed receive boiler status: %s"),
|
||||||
|
CustomOpenTherm::statusToString(this->instance->getLastResponseStatus())
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!vars.states.otStatus && millis() - this->lastSuccessResponse < 1150) {
|
if (!vars.states.otStatus && millis() - this->lastSuccessResponse < 1150) {
|
||||||
@@ -241,6 +245,12 @@ protected:
|
|||||||
vars.states.fault = CustomOpenTherm::isFault(response);
|
vars.states.fault = CustomOpenTherm::isFault(response);
|
||||||
vars.states.diagnostic = CustomOpenTherm::isDiagnostic(response);
|
vars.states.diagnostic = CustomOpenTherm::isDiagnostic(response);
|
||||||
|
|
||||||
|
Log.snoticeln(
|
||||||
|
FPSTR(L_OT),
|
||||||
|
F("Received boiler status. Heating: %hhu; DHW: %hhu; flame: %hhu; fault: %hhu; diag: %hhu"),
|
||||||
|
vars.states.heating, vars.states.dhw, vars.states.flame, vars.states.fault, vars.states.diagnostic
|
||||||
|
);
|
||||||
|
|
||||||
// Fault state
|
// Fault state
|
||||||
if (this->configuredFaultStateGpio != GPIO_IS_NOT_CONFIGURED) {
|
if (this->configuredFaultStateGpio != GPIO_IS_NOT_CONFIGURED) {
|
||||||
bool fState = vars.states.fault ^ settings.opentherm.invertFaultState ? HIGH : LOW;
|
bool fState = vars.states.fault ^ settings.opentherm.invertFaultState ? HIGH : LOW;
|
||||||
|
|||||||
Reference in New Issue
Block a user