aboutsummaryrefslogtreecommitdiffstats
path: root/common_features.mk
diff options
context:
space:
mode:
authorGravatar skullY <skullydazed@gmail.com>2019-01-27 16:19:44 -0800
committerGravatar skullydazed <skullydazed@users.noreply.github.com>2019-02-10 15:37:12 -0800
commitcc738e32dd02cbc6e10f3e229332390d3b886e4d (patch)
treec2c0b7a107c6a5bec6269f39b95a86ca1c6f1eb9 /common_features.mk
parent6b74dd6de5359da18e87b2d4894e3ffc3fc89d47 (diff)
downloadqmk_firmware-cc738e32dd02cbc6e10f3e229332390d3b886e4d.tar.gz
Force backlight on when led matrix is enabled
Diffstat (limited to 'common_features.mk')
-rw-r--r--common_features.mk16
1 files changed, 7 insertions, 9 deletions
diff --git a/common_features.mk b/common_features.mk
index ff01ecb85..b5fdb404b 100644
--- a/common_features.mk
+++ b/common_features.mk
@@ -118,12 +118,13 @@ VALID_MATRIX_TYPES := yes IS31FL3731 IS31FL3733 custom
LED_MATRIX_ENABLE ?= no
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)
-endif
- OPT_DEFS += -DLED_MATRIX_ENABLE
- SRC += $(QUANTUM_DIR)/led_matrix.c
- SRC += $(QUANTUM_DIR)/led_matrix_drivers.c
+ 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
+ SRC += $(QUANTUM_DIR)/led_matrix.c
+ SRC += $(QUANTUM_DIR)/led_matrix_drivers.c
+ endif
endif
ifeq ($(strip $(LED_MATRIX_ENABLE)), IS31FL3731)
@@ -212,9 +213,6 @@ ifeq ($(strip $(BACKLIGHT_ENABLE)), yes)
ifeq ($(strip $(BACKLIGHT_CUSTOM_DRIVER)), yes)
OPT_DEFS += -DBACKLIGHT_CUSTOM_DRIVER
endif
- ifeq ($(filter $(LED_MATRIX_ENABLE),$(VALID_MATRIX_TYPES)),)
- OPT_DEFS += -DBACKLIGHT_CUSTOM_DRIVER
- endif
endif
ifeq ($(strip $(CIE1931_CURVE)), yes)