fix: better debug messages
This commit is contained in:
parent
6ecef87f24
commit
452b37dd6a
2 changed files with 4 additions and 1 deletions
|
@ -35,6 +35,8 @@ handler_command_set_schedule(binn *map, controller_t *controller)
|
||||||
schedule_free(target_relay->schedule);
|
schedule_free(target_relay->schedule);
|
||||||
}
|
}
|
||||||
target_relay->schedule = schedule_create(schedule_id, periods_count, periods);
|
target_relay->schedule = schedule_create(schedule_id, periods_count, periods);
|
||||||
|
|
||||||
|
relay_debug(target_relay);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
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_set_name(controller->relays[relay_num], relay_name);
|
||||||
}
|
}
|
||||||
|
relay_debug(controller->relays[relay_num]);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
#include <logger.h>
|
#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
|
#ifdef WIRING_PI_DEBUG
|
||||||
#define wiringPiSetup() LOG_WIRING_DEBUG("wiringPi wiringPiSetup()")
|
#define wiringPiSetup() LOG_WIRING_DEBUG("wiringPi wiringPiSetup()")
|
||||||
|
|
Loading…
Reference in a new issue