logging: Better logging. Fixed pins printout.

This commit is contained in:
RedHawk
2023-05-12 17:08:01 +03:00
parent d1d90a553a
commit e5bb200789
3 changed files with 8 additions and 5 deletions

View File

@@ -62,13 +62,14 @@ void UserInterface::handleLCD(LiquidCrystal *lcd, const char *str)
//Interpret empty string as clear.
if(!strlen(str)){
lcd->clear();
LOG_INFO("Clear up LCD");
LOG_DEBUG("Clear up LCD");
//Print the text otherwise.
}else
}
else
{
lcd->setCursor(0, 0);
lcd->print(str);
LOG_INFO("Printing [%s] on LCD", str);
LOG_DEBUG("Printing [%s] on LCD", str);
}
}