summaryrefslogtreecommitdiff
path: root/protocol/lufa/lufa.c
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2014-07-20 00:25:06 +0900
committertmk <nobody@nowhere>2014-07-20 00:31:40 +0900
commit32997200f7f316dfce9242bf929264298677a704 (patch)
treefc52f746a2cb1ba5a1eb060bfb342ccdcfaebd45 /protocol/lufa/lufa.c
parent452866319bc30ef1bb018c4aa70df519ab78b9bf (diff)
Fix NKRO code when NKRO is disable
Diffstat (limited to 'protocol/lufa/lufa.c')
-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 d60aecc3f1..16a602df13 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())) {