fix: logging calls

This commit is contained in:
Tobias Reisinger 2020-04-14 01:51:40 +02:00
parent db64e4f820
commit 6ecef87f24
3 changed files with 23 additions and 14 deletions

4
main.c
View file

@ -130,13 +130,13 @@ main(int argc, char** argv)
/******************** START MAIN LOOP ********************/
while(1)
for(;;)
{
ret = poll(fds, fd_count, timeout_msecs);
if(ret == 0)
{
LOG_TRACE("idle loop");
LOG_DEBUG("===== IDLE LOOP START =====");
for(uint_fast8_t i = 0; i < this_controller->relay_count; ++i)
{
relay_t *relay = this_controller->relays[i];