diff options
-rw-r--r-- | common_features.mk | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common_features.mk b/common_features.mk index 01ceb8278..09d01debd 100644 --- a/common_features.mk +++ b/common_features.mk | |||
@@ -278,6 +278,8 @@ ifeq ($(strip $(WS2812_DRIVER_REQUIRED)), yes) | |||
278 | $(error WS2812_DRIVER="$(WS2812_DRIVER)" is not a valid WS2812 driver) | 278 | $(error WS2812_DRIVER="$(WS2812_DRIVER)" is not a valid WS2812 driver) |
279 | endif | 279 | endif |
280 | 280 | ||
281 | OPT_DEFS += -DWS2812_DRIVER_$(strip $(shell echo $(WS2812_DRIVER) | tr '[:lower:]' '[:upper:]')) | ||
282 | |||
281 | ifeq ($(strip $(WS2812_DRIVER)), bitbang) | 283 | ifeq ($(strip $(WS2812_DRIVER)), bitbang) |
282 | SRC += ws2812.c | 284 | SRC += ws2812.c |
283 | else | 285 | else |