Refactor lcd.h DEEP_DEBUG to follow standard
This commit is contained in:
@@ -28,7 +28,7 @@ lcd::~lcd() {}
|
|||||||
int lcd::init() {
|
int lcd::init() {
|
||||||
#ifdef DEEP_DEBUG
|
#ifdef DEEP_DEBUG
|
||||||
if (_logger != nullptr) {
|
if (_logger != nullptr) {
|
||||||
_logger->deep_debug(String(MOD) + ": LCD init Begin");
|
_logger->deep_debug(String(MOD) + ": init: Begin");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
_display->init();
|
_display->init();
|
||||||
@@ -37,7 +37,7 @@ int lcd::init() {
|
|||||||
_display->setCursor(0, 0);
|
_display->setCursor(0, 0);
|
||||||
#ifdef DEEP_DEBUG
|
#ifdef DEEP_DEBUG
|
||||||
if (_logger != nullptr) {
|
if (_logger != nullptr) {
|
||||||
_logger->deep_debug(String(MOD) + ": LCD init End");
|
_logger->deep_debug(String(MOD) + ": init: End");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
@@ -46,7 +46,7 @@ int lcd::init() {
|
|||||||
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->deep_debug(String(MOD) + ": LCD print_message Begin");
|
_logger->deep_debug(String(MOD) + ": print_message: Begin");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
_display->clear();
|
_display->clear();
|
||||||
@@ -59,7 +59,7 @@ int lcd::print_message(String message) {
|
|||||||
#endif
|
#endif
|
||||||
#ifdef DEEP_DEBUG
|
#ifdef DEEP_DEBUG
|
||||||
if (_logger != nullptr) {
|
if (_logger != nullptr) {
|
||||||
_logger->deep_debug(String(MOD) + ": LCD print_message End");
|
_logger->deep_debug(String(MOD) + ": print_message: End");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user