From a7b1d94465d5ad0aa81cbe654aee65715c36efe9 Mon Sep 17 00:00:00 2001 From: Jacob Alexander Date: Mon, 10 Nov 2014 22:50:54 -0800 Subject: [PATCH 1/1] Fixing NKRO modifier bug - Modifier byte was being cleared after each send (needed for Boot Mode only) --- Output/pjrcUSB/output_com.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Output/pjrcUSB/output_com.c b/Output/pjrcUSB/output_com.c index aa5f5b0..7ac8b56 100644 --- a/Output/pjrcUSB/output_com.c +++ b/Output/pjrcUSB/output_com.c @@ -497,14 +497,15 @@ inline void Output_send() 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 -- 2.39.2