# HG changeset patch # User Jacob Alexander # Date 1415688654 28800 # Node ID ca9a6839e1cec09d72ab854e47553df2c2a4c253 # Parent 2e098cf8f71da9a0ce38057656deaff3caad9461 Fixing NKRO modifier bug - Modifier byte was being cleared after each send (needed for Boot Mode only) diff -r 2e098cf8f71d -r ca9a6839e1ce Output/pjrcUSB/output_com.c --- 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