From 944b6107e2b23cb6c4699901154e4bbd7ff53231 Mon Sep 17 00:00:00 2001 From: Joel Challis Date: Tue, 31 Jan 2023 01:02:17 +0000 Subject: [PATCH] Fix midi after recent refactoring (#19723) --- tmk_core/protocol/lufa.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tmk_core/protocol/lufa.mk b/tmk_core/protocol/lufa.mk index a67939906e..b048c1836c 100644 --- a/tmk_core/protocol/lufa.mk +++ b/tmk_core/protocol/lufa.mk @@ -17,6 +17,10 @@ LUFA_SRC = lufa.c \ usb_descriptor.c \ $(LUFA_SRC_USB) +ifeq ($(strip $(MIDI_ENABLE)), yes) + LUFA_SRC += $(LUFA_ROOT_PATH)/Drivers/USB/Class/Device/MIDIClassDevice.c +endif + ifeq ($(strip $(VIRTSER_ENABLE)), yes) LUFA_SRC += $(LUFA_ROOT_PATH)/Drivers/USB/Class/Device/CDCClassDevice.c endif