fix: display of fault code and diag code in logs fixed

This commit is contained in:
Yurii
2024-10-26 21:37:23 +03:00
parent 45762967ee
commit 56a0d1322f

View File

@@ -59,7 +59,12 @@ protected:
} }
if (!GPIO_IS_VALID(settings.opentherm.inGpio) || !GPIO_IS_VALID(settings.opentherm.outGpio)) { if (!GPIO_IS_VALID(settings.opentherm.inGpio) || !GPIO_IS_VALID(settings.opentherm.outGpio)) {
Log.swarningln(FPSTR(L_OT), F("Not started. GPIO IN: %hhu or GPIO OUT: %hhu is not valid"), settings.opentherm.inGpio, settings.opentherm.outGpio); Log.swarningln(
FPSTR(L_OT),
F("Not started. GPIO IN: %hhu or GPIO OUT: %hhu is not valid"),
settings.opentherm.inGpio,
settings.opentherm.outGpio
);
return; return;
} }
@@ -340,7 +345,7 @@ protected:
if (this->updateFaultCode()) { if (this->updateFaultCode()) {
Log.snoticeln( Log.snoticeln(
FPSTR(L_OT), FPSTR(L_OT),
F("Received fault code: %hhu%% (0x%02X)"), F("Received fault code: %hhu (0x%02X)"),
vars.sensors.faultCode, vars.sensors.faultCode,
vars.sensors.faultCode vars.sensors.faultCode
); );
@@ -360,7 +365,7 @@ protected:
if (this->updateDiagCode()) { if (this->updateDiagCode()) {
Log.snoticeln( Log.snoticeln(
FPSTR(L_OT), FPSTR(L_OT),
F("Received diag code: %hhu%% (0x%02X)"), F("Received diag code: %hu (0x%02X)"),
vars.sensors.diagnosticCode, vars.sensors.diagnosticCode,
vars.sensors.diagnosticCode vars.sensors.diagnosticCode
); );