From 88fe16c822dd4adc9ca979c01280da22afc1ce89 Mon Sep 17 00:00:00 2001 From: Ing-Dom Date: Fri, 29 Dec 2023 09:16:55 +0100 Subject: [PATCH] wip --- src/knx/logger.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/knx/logger.h b/src/knx/logger.h index 81edd9c..b2ba430 100644 --- a/src/knx/logger.h +++ b/src/knx/logger.h @@ -13,6 +13,8 @@ Usage: */ +#include + constexpr auto KNX_LOG_LVL_ERROR = 1; constexpr auto KNX_LOG_LVL_INFO = 2; @@ -44,26 +46,26 @@ template __attribute__((always_inline)) constexpr void KNX_LOG_TRACE(Args&&... args) { if constexpr((LOGLEVEL >= KNX_LOG_LVL_TRACE) && (x & LOGAREAS)) - Serial.printf(std::forward(args)...); + printf(std::forward(args)...); } template __attribute__((always_inline)) constexpr void KNX_LOG_DEBUG(Args&&... args) { if constexpr((LOGLEVEL >= KNX_LOG_LVL_DEBUG) && (x & LOGAREAS)) - Serial.printf(std::forward(args)...); + printf(std::forward(args)...); } template __attribute__((always_inline)) constexpr void KNX_LOG_INFO(Args&&... args) { if constexpr((LOGLEVEL >= KNX_LOG_LVL_INFO) && (x & LOGAREAS)) - Serial.printf(std::forward(args)...); + printf(std::forward(args)...); } template __attribute__((always_inline)) constexpr void KNX_LOG_ERROR(Args&&... args) { if constexpr((LOGLEVEL >= KNX_LOG_LVL_ERROR) && (x & LOGAREAS)) - Serial.printf(std::forward(args)...); + printf(std::forward(args)...); } \ No newline at end of file