Remove redundant unsigned comparison in apa102_set_brightness (#26010)

This commit is contained in:
フィルターペーパー
2026-02-13 20:35:08 +08:00
committed by GitHub
parent 6b2a2ab7ac
commit 888d42d64c
-2
View File
@@ -145,8 +145,6 @@ void apa102_flush(void) {
void apa102_set_brightness(uint8_t brightness) {
if (brightness > APA102_MAX_BRIGHTNESS) {
apa102_led_brightness = APA102_MAX_BRIGHTNESS;
} else if (brightness < 0) {
apa102_led_brightness = 0;
} else {
apa102_led_brightness = brightness;
}