fix: better debug messages

This commit is contained in:
Tobias Reisinger 2020-04-14 01:58:06 +02:00
parent 6ecef87f24
commit 452b37dd6a
2 changed files with 4 additions and 1 deletions

View file

@ -35,6 +35,8 @@ handler_command_set_schedule(binn *map, controller_t *controller)
schedule_free(target_relay->schedule);
}
target_relay->schedule = schedule_create(schedule_id, periods_count, periods);
relay_debug(target_relay);
}
static void
@ -47,6 +49,7 @@ handler_command_set_relay_name(binn *map, controller_t *controller)
{
relay_set_name(controller->relays[relay_num], relay_name);
}
relay_debug(controller->relays[relay_num]);
}
void

View file

@ -3,7 +3,7 @@
#include <logger.h>
#define LOG_WIRING_DEBUG(x, ...) LOG_DEBUG(x, ##__VA_ARGS__)
#define LOG_WIRING_DEBUG(x, ...) LOG_TRACE(x, ##__VA_ARGS__)
#ifdef WIRING_PI_DEBUG
#define wiringPiSetup() LOG_WIRING_DEBUG("wiringPi wiringPiSetup()")