Skip to content

Commit c1295a3

Browse files
tzarczvecr
authored andcommitted
Add definition based on currently-selected serial driver. (#10716)
* Add definition based on currently-selected serial driver. * Apply suggestions from code review Suggestions from zvecr. Co-authored-by: Joel Challis <[email protected]> Co-authored-by: Joel Challis <[email protected]>
1 parent 12be012 commit c1295a3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

common_features.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,7 @@ ifeq ($(strip $(SPLIT_KEYBOARD)), yes)
450450
endif
451451

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

0 commit comments

Comments
 (0)