From 4395e42e4c7516824ef6224a3a548d5c96685ffa Mon Sep 17 00:00:00 2001 From: Hector van der Aa Date: Sun, 22 Mar 2026 23:26:38 +0100 Subject: [PATCH] Corrected deep_debug function calls in lcd.h --- src/modules/lcd/lcd.h | 44 +++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/src/modules/lcd/lcd.h b/src/modules/lcd/lcd.h index 15e7834..9fada7e 100644 --- a/src/modules/lcd/lcd.h +++ b/src/modules/lcd/lcd.h @@ -26,42 +26,42 @@ lcd::lcd(system_logger *logger) { lcd::~lcd() {} int lcd::init() { - #ifdef DEEP_DEBUG - if (_logger != nullptr) { - _logger->debug(String(MOD) + ": LCD init Begin"); - } - #endif +#ifdef DEEP_DEBUG + if (_logger != nullptr) { + _logger->deep_debug(String(MOD) + ": LCD init Begin"); + } +#endif _display->init(); _display->backlight(); _display->clear(); _display->setCursor(0, 0); - #ifdef DEEP_DEBUG - if (_logger != nullptr) { - _logger->debug(String(MOD) + ": LCD init End"); - } - #endif +#ifdef DEEP_DEBUG + if (_logger != nullptr) { + _logger->deep_debug(String(MOD) + ": LCD init End"); + } +#endif return 0; } int lcd::print_message(String message) { - #ifdef DEEP_DEBUG - if (_logger != nullptr) { - _logger->debug(String(MOD) + ": LCD print_message Begin"); - } - #endif +#ifdef DEEP_DEBUG + if (_logger != nullptr) { + _logger->deep_debug(String(MOD) + ": LCD print_message Begin"); + } +#endif _display->clear(); _display->setCursor(0, 0); _display->print(message); - #ifdef INFO +#ifdef INFO if (_logger != nullptr) { _logger->info(message); } - #endif - #ifdef DEEP_DEBUG - if (_logger != nullptr) { - _logger->debug(String(MOD) + ": LCD print_message End"); - } - #endif +#endif +#ifdef DEEP_DEBUG + if (_logger != nullptr) { + _logger->deep_debug(String(MOD) + ": LCD print_message End"); + } +#endif return 0; }