summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2020-02-14 01:09:03 -0800
committerFlorian Didron <fdidron@users.noreply.github.com>2020-02-26 10:15:12 +0900
commit7e614bbdbafca299f9f4a296e2918240137e72b9 (patch)
tree4f602a9564e1e520f884c89a4768dd8847494d2d
parentd4f504b70d0825b4ef5a9d0e59344a944b7f2938 (diff)
Fix boards which were overriding backlight without setting custom (#7970) (#270)
Co-authored-by: Joel Challis <git@zvecr.com> Co-authored-by: Florian Didron <fdidron@users.noreply.github.com>
-rw-r--r--common_features.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/common_features.mk b/common_features.mk
index 282ab7c118..b4f9e2d1f5 100644
--- a/common_features.mk
+++ b/common_features.mk
@@ -175,7 +175,9 @@ ifneq ($(strip $(LED_MATRIX_ENABLE)), no)
ifeq ($(filter $(LED_MATRIX_ENABLE),$(VALID_MATRIX_TYPES)),)
$(error LED_MATRIX_ENABLE="$(LED_MATRIX_ENABLE)" is not a valid matrix type)
else
- OPT_DEFS += -DLED_MATRIX_ENABLE -DBACKLIGHT_ENABLE -DBACKLIGHT_CUSTOM_DRIVER
+ BACKLIGHT_ENABLE = yes
+ BACKLIGHT_DRIVER = custom
+ OPT_DEFS += -DLED_MATRIX_ENABLE
SRC += $(QUANTUM_DIR)/led_matrix.c
SRC += $(QUANTUM_DIR)/led_matrix_drivers.c
endif
@@ -343,6 +345,10 @@ ifeq ($(strip $(WS2812_DRIVER_REQUIRED)), yes)
endif
endif
+ifeq ($(strip $(VISUALIZER_ENABLE)), yes)
+ CIE1931_CURVE := yes
+endif
+
ifeq ($(strip $(CIE1931_CURVE)), yes)
OPT_DEFS += -DUSE_CIE1931_CURVE
LED_TABLES := yes