From 56a0d1322fc1293130ed9737dcc54f7b527e9316 Mon Sep 17 00:00:00 2001 From: Yurii Date: Sat, 26 Oct 2024 21:37:23 +0300 Subject: [PATCH] fix: display of fault code and diag code in logs fixed --- src/OpenThermTask.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/OpenThermTask.h b/src/OpenThermTask.h index 5a3e8cf..ccbaea2 100644 --- a/src/OpenThermTask.h +++ b/src/OpenThermTask.h @@ -59,7 +59,12 @@ protected: } 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; } @@ -340,7 +345,7 @@ protected: 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 ); @@ -360,7 +365,7 @@ protected: 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 );