summaryrefslogtreecommitdiffstats
path: root/protocol
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2014-07-19 17:25:06 +0200
committertmk <nobody@nowhere>2014-07-19 17:31:40 +0200
commit32997200f7f316dfce9242bf929264298677a704 (patch)
treefc52f746a2cb1ba5a1eb060bfb342ccdcfaebd45 /protocol
parent452866319bc30ef1bb018c4aa70df519ab78b9bf (diff)
downloadqmk_firmware-32997200f7f316dfce9242bf929264298677a704.tar.gz
qmk_firmware-32997200f7f316dfce9242bf929264298677a704.tar.xz
Fix NKRO code when NKRO is disable
Diffstat (limited to 'protocol')
-rw-r--r--protocol/lufa/lufa.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/protocol/lufa/lufa.c b/protocol/lufa/lufa.c
index d60aecc3f..16a602df1 100644
--- a/protocol/lufa/lufa.c
+++ b/protocol/lufa/lufa.c
@@ -272,7 +272,9 @@ void EVENT_USB_Device_ControlRequest(void)
// Interface
switch (USB_ControlRequest.wIndex) {
case KEYBOARD_INTERFACE:
+#ifdef NKRO_ENABLE
case NKRO_INTERFACE:
+#endif
Endpoint_ClearSETUP();
while (!(Endpoint_IsOUTReceived())) {