diff options
author | Luiz Ribeiro <[email protected]> | 2017-06-10 12:40:32 -0400 |
---|---|---|
committer | Luiz Ribeiro <[email protected]> | 2017-06-11 12:30:48 -0400 |
commit | d4cd5dda5c3e3c5b8b8d4db5d0bbed2fec0c770d (patch) | |
tree | 8f62acf6a849da7f7c61c18635b905ba8cd63132 /quantum/rgblight.c | |
parent | 964d7060e1176d487a1f9dfe9bb76b491983748d (diff) | |
download | qmk_firmware-d4cd5dda5c3e3c5b8b8d4db5d0bbed2fec0c770d.tar.gz qmk_firmware-d4cd5dda5c3e3c5b8b8d4db5d0bbed2fec0c770d.zip |
Added a build flag for using a custom rgblight driver
Diffstat (limited to 'quantum/rgblight.c')
-rw-r--r-- | quantum/rgblight.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/quantum/rgblight.c b/quantum/rgblight.c index 4eec2a7762..49420de376 100644 --- a/quantum/rgblight.c +++ b/quantum/rgblight.c @@ -364,7 +364,7 @@ void rgblight_setrgb(uint8_t r, uint8_t g, uint8_t b) { rgblight_set(); } -__attribute__ ((weak)) +#ifndef RGBLIGHT_CUSTOM_DRIVER void rgblight_set(void) { if (rgblight_config.enable) { #ifdef RGBW @@ -385,6 +385,7 @@ void rgblight_set(void) { #endif } } +#endif #ifdef RGBLIGHT_ANIMATIONS |