Skip to content

Commit aed82bc

Browse files
authored
Move Encoder+Encoder Map from generic features (qmk#18018)
1 parent 06c7614 commit aed82bc

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

builddefs/common_features.mk

+8
Original file line numberDiff line numberDiff line change
@@ -893,3 +893,11 @@ ifeq ($(strip $(BLUETOOTH_ENABLE)), yes)
893893
QUANTUM_LIB_SRC += uart.c
894894
endif
895895
endif
896+
897+
ifeq ($(strip $(ENCODER_ENABLE)), yes)
898+
COMMON_VPATH += $(QUANTUM_DIR)/encoder.c
899+
OPT_DEFS += -DENCODER_ENABLE
900+
ifeq ($(strip $(ENCODER_MAP_ENABLE)), yes)
901+
OPT_DEFS += -DENCODER_MAP_ENABLE
902+
endif
903+
endif

builddefs/generic_features.mk

-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ GENERIC_FEATURES = \
2525
DIP_SWITCH \
2626
DYNAMIC_KEYMAP \
2727
DYNAMIC_MACRO \
28-
ENCODER \
29-
ENCODER_MAP \
3028
GRAVE_ESC \
3129
HAPTIC \
3230
KEY_LOCK \

0 commit comments

Comments
 (0)