logging: Better logging. Fixed pins printout.
This commit is contained in:
@@ -108,6 +108,7 @@ void thread_master(void* pvParams) {
|
||||
manager->qm->createQueue(20,
|
||||
sizeof(UserInterface::InterfaceWithData),
|
||||
ThreadCommon::QueueManager::ui_event_manager);
|
||||
LOG_INFO("Master created queues");
|
||||
|
||||
|
||||
LOG_INFO("Master is creating tasks");
|
||||
@@ -120,5 +121,6 @@ void thread_master(void* pvParams) {
|
||||
manager->tm->createTask(thread_user_interface, "user_interface",
|
||||
configMINIMAL_STACK_SIZE * 10,tskIDLE_PRIORITY + 1UL,
|
||||
static_cast<void*>(manager));
|
||||
LOG_INFO("Master created tasks");
|
||||
m.taskFunction();
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user