Fix builds without status pixel. No need to track its brightness when its unavaialable.
This commit is contained in:
parent
a5220010f2
commit
06c944519d
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user