]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - common_features.mk
led_matrix works now
[qmk_firmware.git] / common_features.mk
index 8c7043cb7ec29cb6dd987c1f902c3692ed6355ee..ff01ecb85df88e20619047edf398be5b87501bbb 100644 (file)
@@ -209,7 +209,10 @@ ifeq ($(strip $(BACKLIGHT_ENABLE)), yes)
     ifeq ($(strip $(VISUALIZER_ENABLE)), yes)
         CIE1931_CURVE = yes
     endif
-        ifeq ($(strip $(BACKLIGHT_CUSTOM_DRIVER)), 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