From 4f8a11be0a50a3c2e584bbc2f87cf3b07d29bce5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cornelius=20K=C3=B6pp?= Date: Tue, 2 Dec 2025 18:44:55 +0100 Subject: [PATCH] Use OpenKNX Default Log-Prefix for Channels (Remove Old Implementation) --- src/LogicChannel.cpp | 9 --------- src/LogicChannel.h | 2 -- 2 files changed, 11 deletions(-) diff --git a/src/LogicChannel.cpp b/src/LogicChannel.cpp index b14ae81..6043bcf 100644 --- a/src/LogicChannel.cpp +++ b/src/LogicChannel.cpp @@ -30,10 +30,6 @@ LogicChannel::LogicChannel(uint8_t iChannelNumber) pTriggerIO = 0; pCurrentIn = BIT_INITIAL_GATE; pCurrentOut = BIT_OUTPUT_INITIAL; // tri-state output, at the beginning we are undefined - pLogPrefix[0] = 'C'; - pLogPrefix[1] = '0' + (iChannelNumber + 1) / 10; - pLogPrefix[2] = '0' + (iChannelNumber + 1) % 10; - pLogPrefix[3] = 0; } LogicChannel::~LogicChannel() @@ -44,11 +40,6 @@ LogicChannel::~LogicChannel() * Debug helper * ***************************/ -const std::string LogicChannel::logPrefix() -{ - return std::string(pLogPrefix); -} - #if LOGIC_TRACE char *LogicChannel::logTimeBase(uint16_t iParamIndex) { diff --git a/src/LogicChannel.h b/src/LogicChannel.h index a449548..aba04ef 100644 --- a/src/LogicChannel.h +++ b/src/LogicChannel.h @@ -225,8 +225,6 @@ class LogicChannel : public OpenKNX::Channel static TimerRestore &sTimerRestore; // instance - char pLogPrefix[4]; - virtual const std::string logPrefix() override; /* Runtime information per channel */ uint8_t pTriggerIO; // Bitfield: Which input (0-3) triggered processing, Bit 4-7 are previous input (currently just internal inputs evaluated) uint8_t pValidActiveIO; // Bitfield: validity flags for input (0-3) values and active inputs (4-7)