Corrected deep_debug function calls in lcd.h
This commit is contained in:
@@ -26,42 +26,42 @@ lcd::lcd(system_logger *logger) {
|
|||||||
lcd::~lcd() {}
|
lcd::~lcd() {}
|
||||||
|
|
||||||
int lcd::init() {
|
int lcd::init() {
|
||||||
#ifdef DEEP_DEBUG
|
#ifdef DEEP_DEBUG
|
||||||
if (_logger != nullptr) {
|
if (_logger != nullptr) {
|
||||||
_logger->debug(String(MOD) + ": LCD init Begin");
|
_logger->deep_debug(String(MOD) + ": LCD init Begin");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
_display->init();
|
_display->init();
|
||||||
_display->backlight();
|
_display->backlight();
|
||||||
_display->clear();
|
_display->clear();
|
||||||
_display->setCursor(0, 0);
|
_display->setCursor(0, 0);
|
||||||
#ifdef DEEP_DEBUG
|
#ifdef DEEP_DEBUG
|
||||||
if (_logger != nullptr) {
|
if (_logger != nullptr) {
|
||||||
_logger->debug(String(MOD) + ": LCD init End");
|
_logger->deep_debug(String(MOD) + ": LCD init End");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int lcd::print_message(String message) {
|
int lcd::print_message(String message) {
|
||||||
#ifdef DEEP_DEBUG
|
#ifdef DEEP_DEBUG
|
||||||
if (_logger != nullptr) {
|
if (_logger != nullptr) {
|
||||||
_logger->debug(String(MOD) + ": LCD print_message Begin");
|
_logger->deep_debug(String(MOD) + ": LCD print_message Begin");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
_display->clear();
|
_display->clear();
|
||||||
_display->setCursor(0, 0);
|
_display->setCursor(0, 0);
|
||||||
_display->print(message);
|
_display->print(message);
|
||||||
#ifdef INFO
|
#ifdef INFO
|
||||||
if (_logger != nullptr) {
|
if (_logger != nullptr) {
|
||||||
_logger->info(message);
|
_logger->info(message);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#ifdef DEEP_DEBUG
|
#ifdef DEEP_DEBUG
|
||||||
if (_logger != nullptr) {
|
if (_logger != nullptr) {
|
||||||
_logger->debug(String(MOD) + ": LCD print_message End");
|
_logger->deep_debug(String(MOD) + ": LCD print_message End");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user