guowenxue@gmail.com
10 days ago d0a1a87fc922734462d0caecf4b6bba8b936ee8b
Fix leds active level bug
2 files modified
4 ■■■■ changed files
ex1.auto-light/Board/miscdev.c 2 ●●● patch | view | raw | blame | history
ex1.buzzer-music/Board/miscdev.c 2 ●●● patch | view | raw | blame | history
ex1.auto-light/Board/miscdev.c
@@ -79,7 +79,7 @@
    if( which >= LedMax )
        return ;
    level = status==OFF ? GPIO_PIN_SET : GPIO_PIN_RESET;
    level = status==ON ? leds[which].active : !leds[which].active;
    HAL_GPIO_WritePin(leds[which].group, leds[which].pin, level);
}
ex1.buzzer-music/Board/miscdev.c
@@ -79,7 +79,7 @@
    if( which >= LedMax )
        return ;
    level = status==OFF ? GPIO_PIN_SET : GPIO_PIN_RESET;
    level = status==ON ? leds[which].active : !leds[which].active;
    HAL_GPIO_WritePin(leds[which].group, leds[which].pin, level);
}