]> git.donarmstrong.com Git - kiibohd-controller.git/commitdiff
Fixing NKRO modifier bug
authorJacob Alexander <haata@kiibohd.com>
Tue, 11 Nov 2014 06:50:54 +0000 (22:50 -0800)
committerJacob Alexander <haata@kiibohd.com>
Tue, 11 Nov 2014 06:50:54 +0000 (22:50 -0800)
- Modifier byte was being cleared after each send (needed for Boot Mode only)

Output/pjrcUSB/output_com.c

index aa5f5b0249468997e775e5d53d168b05f31cfe3f..7ac8b564c9f4f222b4d4db39ad4cd27f7dd64bd0 100644 (file)
@@ -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