diff options
| author | Scott Shawcroft <scott.shawcroft@gmail.com> | 2018-02-13 09:39:19 -0800 |
|---|---|---|
| committer | Scott Shawcroft <scott.shawcroft@gmail.com> | 2018-02-13 09:39:19 -0800 |
| commit | 06c944519dbdaa767c3c88ec419602ea41ad16d3 (patch) | |
| tree | 6f73d34e56c821524630d8c4cdc099b2ee833306 | |
| parent | a5220010f2fd4245424ec75a093f652f63ae09ec (diff) | |
Fix builds without status pixel. No need to track its brightness when its unavaialable.
| -rw-r--r-- | atmel-samd/rgb_led_status.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/atmel-samd/rgb_led_status.c b/atmel-samd/rgb_led_status.c index 5ce74fb4f..a15738512 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 } |
