8000 Fix builds without status pixel. No need to track its brightness when… · flummer/circuitpython@06c9445 · GitHub
[go: up one dir, main page]

Skip to content

Commit 06c9445

Browse files
committed
Fix builds without status pixel. No need to track its brightness when its unavaialable.
1 parent a522001 commit 06c9445

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

atmel-samd/rgb_led_status.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,5 +175,7 @@ uint32_t color_brightness(uint32_t color, uint8_t brightness) {
175175
}
176176

177177
void set_rgb_status_brightness(uint8_t level){
178-
rgb_status_brightness = level;
178+
#if defined(MICROPY_HW_NEOPIXEL) || (defined(MICROPY_HW_APA102_MOSI) && defined(MICROPY_HW_APA102_SCK))
179+
rgb_status_brightness = level;
180+
#endif
179181
}

0 commit comments

Comments
 (0)
0