From 06c944519dbdaa767c3c88ec419602ea41ad16d3 Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Tue, 13 Feb 2018 09:39:19 -0800 Subject: [PATCH] Fix builds without status pixel. No need to track its brightness when its unavaialable. --- atmel-samd/rgb_led_status.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/atmel-samd/rgb_led_status.c b/atmel-samd/rgb_led_status.c index 5ce74fb4fa..a157385126 100644 --- a/atmel-samd/rgb_led_status.c +++ b/atmel-samd/rgb_led_status.c @@ -175,5 +175,7 @@ uint32_t color_brightness(uint32_t color, uint8_t brightness) { } void set_rgb_status_brightness(uint8_t level){ - rgb_status_brightness = level; + #if defined(MICROPY_HW_NEOPIXEL) || (defined(MICROPY_HW_APA102_MOSI) && defined(MICROPY_HW_APA102_SCK)) + rgb_status_brightness = level; + #endif }