Skip to content

Commit

Permalink
fix: display of fault code and diag code in logs fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Laxilef committed Oct 26, 2024
1 parent 4576296 commit 56a0d13
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/OpenThermTask.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,12 @@ class OpenThermTask : public Task {
}

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;
}

Expand Down Expand Up @@ -340,7 +345,7 @@ class OpenThermTask : public Task {
if (this->updateFaultCode()) {
Log.snoticeln(
FPSTR(L_OT),
F("Received fault code: %hhu%% (0x%02X)"),
F("Received fault code: %hhu (0x%02X)"),
vars.sensors.faultCode,
vars.sensors.faultCode
);
Expand All @@ -360,7 +365,7 @@ class OpenThermTask : public Task {
if (this->updateDiagCode()) {
Log.snoticeln(
FPSTR(L_OT),
F("Received diag code: %hhu%% (0x%02X)"),
F("Received diag code: %hu (0x%02X)"),
vars.sensors.diagnosticCode,
vars.sensors.diagnosticCode
);
Expand Down

0 comments on commit 56a0d13

Please sign in to comment.