Change to:
static void _control_led(peripheral_gpio_h gpio, int power_on)
{
int ret;
ret = peripheral_gpio_write(gpio, power_on);
dlog_print(DLOG_INFO, LOG_TAG, "Write [0x%x] into GPIO%d, ret=%d.",
power_on, GPIO_NUM, ret);
}
Change-Id: I9637b87d6f875aab1db568a9fa31779b9e626490
Signed-off-by: Hackseung Lee <lhs@dignsys.com>
static void _control_led(peripheral_gpio_h gpio, int power_on)
{
- dlog_print(DLOG_INFO, LOG_TAG, "Write [%d] into GPIO.");
- peripheral_gpio_write(gpio, power_on);
+ int ret;
+
+ ret = peripheral_gpio_write(gpio, power_on);
+
+ dlog_print(DLOG_INFO, LOG_TAG, "Write [0x%x] into GPIO%d, ret=%d.",
+ power_on, GPIO_NUM, ret);
}
static gboolean _toggle_led(gpointer user_data)