Skip to content

Commit f8746a4

Browse files
tzarczvecr
andauthored
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 2d468c4 commit f8746a4

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
@@ -435,6 +435,7 @@ ifeq ($(strip $(SPLIT_KEYBOARD)), yes)
435435
endif
436436

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

0 commit comments

Comments
 (0)