logging: Better logging. Fixed pins printout.
This commit is contained in:
parent
d1d90a553a
commit
e5bb200789
@ -40,7 +40,7 @@ DigitalIoPin::~DigitalIoPin ()
|
||||
void
|
||||
DigitalIoPin::setIoPin ()
|
||||
{
|
||||
LOG_INFO("P%d_%d set as %s", _io._port, _io._port,
|
||||
LOG_DEBUG("P%d_%d set as %s", _io._port, _io._pin,
|
||||
_io._input ? "input" : "output");
|
||||
bool direction = true;
|
||||
if (_io._input)
|
||||
@ -65,7 +65,7 @@ DigitalIoPin::setIoPin ()
|
||||
void
|
||||
DigitalIoPin::setIsr ()
|
||||
{
|
||||
LOG_INFO("P%d_%d set as ISR", _io._port, _io._port);
|
||||
LOG_DEBUG("P%d_%d set as ISR", _io._port, _io._pin);
|
||||
bool direction = true;
|
||||
if (_io._input)
|
||||
{
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user