Skip to content

Commit

Permalink
Add definition based on currently-selected serial driver. (qmk#10716)
Browse files Browse the repository at this point in the history
* Add definition based on currently-selected serial driver.

* Apply suggestions from code review

Suggestions from zvecr.

Co-authored-by: Joel Challis <git@zvecr.com>

Co-authored-by: Joel Challis <git@zvecr.com>
  • Loading branch information
2 people authored and noroadsleft committed Oct 30, 2020
1 parent 572dee0 commit 8c7f901
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common_features.mk
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,7 @@ ifeq ($(strip $(SPLIT_KEYBOARD)), yes)
endif

SERIAL_DRIVER ?= bitbang
OPT_DEFS += -DSERIAL_DRIVER_$(strip $(shell echo $(SERIAL_DRIVER) | tr '[:lower:]' '[:upper:]'))
ifeq ($(strip $(SERIAL_DRIVER)), bitbang)
QUANTUM_LIB_SRC += serial.c
else
Expand Down

0 comments on commit 8c7f901

Please sign in to comment.