diff options
Diffstat (limited to 'common_features.mk')
-rw-r--r-- | common_features.mk | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/common_features.mk b/common_features.mk index f5e7af01fa..521bb31615 100644 --- a/common_features.mk +++ b/common_features.mk @@ -87,10 +87,14 @@ endif ifeq ($(strip $(RGBLIGHT_ENABLE)), yes) OPT_DEFS += -DRGBLIGHT_ENABLE - SRC += $(QUANTUM_DIR)/light_ws2812.c SRC += $(QUANTUM_DIR)/rgblight.c CIE1931_CURVE = yes LED_BREATHING_TABLE = yes + ifeq ($(strip $(RGBLIGHT_CUSTOM_DRIVER)), yes) + OPT_DEFS += -DRGBLIGHT_CUSTOM_DRIVER + else + SRC += $(QUANTUM_DIR)/light_ws2812.c + endif endif ifeq ($(strip $(TAP_DANCE_ENABLE)), yes) @@ -150,4 +154,4 @@ QUANTUM_SRC:= \ ifndef CUSTOM_MATRIX QUANTUM_SRC += $(QUANTUM_DIR)/matrix.c -endif
\ No newline at end of file +endif |