RaspberrPi project source code
guowenxue
3 days ago cd8f10f9dce7fe181d7ae211a7718174d7a841d0
project/modules/leds.c
@@ -102,7 +102,7 @@
    int            i;
    led_info_t    *led;
    log_warn("terminate RGB Led gpios\n");
    log_debug("terminate RGB Led gpios\n");
    if( !ctx )
    {
@@ -148,6 +148,8 @@
    led = &ctx.leds[which];
    log_info("turn Led %s %s\n", led->name, cmd?"on":"off");
    if( OFF == cmd )
    {
        gpiod_line_set_value(led->line, !led->active);