diff options
| -rw-r--r-- | quantum/rgblight.c | 1 | ||||
| -rw-r--r-- | quantum/rgblight.h | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/quantum/rgblight.c b/quantum/rgblight.c index 6e335a483..0f7a1d828 100644 --- a/quantum/rgblight.c +++ b/quantum/rgblight.c | |||
| @@ -370,6 +370,7 @@ void rgblight_setrgb(uint8_t r, uint8_t g, uint8_t b) { | |||
| 370 | rgblight_set(); | 370 | rgblight_set(); |
| 371 | } | 371 | } |
| 372 | 372 | ||
| 373 | +__attribute__ ((weak)) | ||
| 373 | void rgblight_set(void) { | 374 | void rgblight_set(void) { |
| 374 | if (rgblight_config.enable) { | 375 | if (rgblight_config.enable) { |
| 375 | #ifdef RGBW | 376 | #ifdef RGBW |
diff --git a/quantum/rgblight.h b/quantum/rgblight.h index ceb624692..726b8de72 100644 --- a/quantum/rgblight.h +++ b/quantum/rgblight.h | |||
| @@ -40,6 +40,8 @@ | |||
| 40 | #include "eeconfig.h" | 40 | #include "eeconfig.h" |
| 41 | #include "light_ws2812.h" | 41 | #include "light_ws2812.h" |
| 42 | 42 | ||
| 43 | extern LED_TYPE led[RGBLED_NUM]; | ||
| 44 | |||
| 43 | extern const uint8_t RGBLED_BREATHING_INTERVALS[4] PROGMEM; | 45 | extern const uint8_t RGBLED_BREATHING_INTERVALS[4] PROGMEM; |
| 44 | extern const uint8_t RGBLED_RAINBOW_MOOD_INTERVALS[3] PROGMEM; | 46 | extern const uint8_t RGBLED_RAINBOW_MOOD_INTERVALS[3] PROGMEM; |
| 45 | extern const uint8_t RGBLED_RAINBOW_SWIRL_INTERVALS[3] PROGMEM; | 47 | extern const uint8_t RGBLED_RAINBOW_SWIRL_INTERVALS[3] PROGMEM; |
