changeset 249:ca9a6839e1ce

Fixing NKRO modifier bug - Modifier byte was being cleared after each send (needed for Boot Mode only)
author Jacob Alexander <haata@kiibohd.com>
date Mon, 10 Nov 2014 22:50:54 -0800
parents 2e098cf8f71d
children afe96322d0c5
files Output/pjrcUSB/output_com.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Output/pjrcUSB/output_com.c	Mon Nov 10 21:02:25 2014 -0800
+++ b/Output/pjrcUSB/output_com.c	Mon Nov 10 22:50:54 2014 -0800
@@ -497,14 +497,15 @@
 	while ( USBKeys_Changed )
 		usb_keyboard_send();
 
-	// Clear modifiers and keys
-	USBKeys_Modifiers = 0;
-	USBKeys_Sent      = 0;
+	// Clear keys sent
+	USBKeys_Sent = 0;
 
 	// Signal Scan Module we are finished
 	switch ( USBKeys_Protocol )
 	{
 	case 0: // Boot Mode
+		// Clear modifiers only in boot mode
+		USBKeys_Modifiers = 0;
 		Scan_finishedWithOutput( USBKeys_Sent <= USB_BOOT_MAX_KEYS ? USBKeys_Sent : USB_BOOT_MAX_KEYS );
 		break;
 	case 1: // NKRO Mode