From d4cd5dda5c3e3c5b8b8d4db5d0bbed2fec0c770d Mon Sep 17 00:00:00 2001 From: Luiz Ribeiro Date: Sat, 10 Jun 2017 12:40:32 -0400 Subject: Added a build flag for using a custom rgblight driver --- quantum/rgblight.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'quantum/rgblight.c') diff --git a/quantum/rgblight.c b/quantum/rgblight.c index 4eec2a776..49420de37 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 -- cgit v1.2.3-24-g4f1b