Skip to content

Commit

Permalink
drashna's suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
Xelus22 committed Jul 27, 2021
1 parent 463d9fc commit 41039d3
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions common_features.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 41039d3

Please sign in to comment.