From 41039d38fd13e0c84aacb5c169309e26a328a686 Mon Sep 17 00:00:00 2001 From: Xelus22 Date: Thu, 15 Jul 2021 16:30:32 +1000 Subject: [PATCH] drashna's suggestion --- common_features.mk | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/common_features.mk b/common_features.mk index 11316aa68268..904296132d62 100644 --- a/common_features.mk +++ b/common_features.mk @@ -610,16 +610,11 @@ ifeq ($(strip $(OLED_ENABLE)), yes) OPT_DEFS += -DOLED_ENABLE COMMON_VPATH += $(DRIVER_PATH)/oled + OPT_DEFS += -DOLED_DRIVER_$(strip $(shell echo $(OLED_DRIVER) | tr '[:lower:]' '[:upper:]')) ifeq ($(strip $(OLED_DRIVER)), SSD1306) SRC += ssd1306_sh1106.c - endif - # add extra deps - ifeq ($(strip $(OLED_DRIVER)), SSD1306) QUANTUM_LIB_SRC += i2c_master.c endif - # ifeq ($(strip $(OLED_DRIVER)), SSD1322) - # QUANTUM_LIB_SRC += spi_master.c - # endif endif endif