aboutsummaryrefslogtreecommitdiff
path: root/protocol/lufa
diff options
context:
space:
mode:
Diffstat (limited to 'protocol/lufa')
-rw-r--r--protocol/lufa/lufa.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/protocol/lufa/lufa.c b/protocol/lufa/lufa.c
index a43a552a8..db05702aa 100644
--- a/protocol/lufa/lufa.c
+++ b/protocol/lufa/lufa.c
@@ -308,6 +308,9 @@ void EVENT_USB_Device_ControlRequest(void)
308 Endpoint_ClearStatusStage(); 308 Endpoint_ClearStatusStage();
309 309
310 keyboard_protocol = ((USB_ControlRequest.wValue & 0xFF) != 0x00); 310 keyboard_protocol = ((USB_ControlRequest.wValue & 0xFF) != 0x00);
311#ifdef NKRO_ENABLE
312 keyboard_nkro = !!keyboard_protocol;
313#endif
311 clear_keyboard(); 314 clear_keyboard();
312 } 315 }
313 } 316 }
@@ -354,7 +357,7 @@ static void send_keyboard(report_keyboard_t *report)
354 357
355 /* Select the Keyboard Report Endpoint */ 358 /* Select the Keyboard Report Endpoint */
356#ifdef NKRO_ENABLE 359#ifdef NKRO_ENABLE
357 if (keyboard_nkro && keyboard_protocol) { 360 if (keyboard_nkro) {
358 /* Report protocol - NKRO */ 361 /* Report protocol - NKRO */
359 Endpoint_SelectEndpoint(NKRO_IN_EPNUM); 362 Endpoint_SelectEndpoint(NKRO_IN_EPNUM);
360 363