Browse Source

Force 6KRO/Boot mode always if defined by KLL

- usbProtocol = 0;
master
Jacob Alexander 7 years ago
parent
commit
22a24e967b
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      Output/pjrcUSB/arm/usb_dev.c

+ 6
- 0
Output/pjrcUSB/arm/usb_dev.c View File

@@ -653,6 +653,12 @@ static void usb_setup()
print(NL);
#endif
USBKeys_Protocol = setup.wValue & 0xFF; // 0 - Boot Mode, 1 - NKRO Mode

// Force Boot Mode if defined by KLL
if ( USBProtocol_define == 0 )
{
USBKeys_Protocol = USBProtocol_define;
}
goto send;

case 0x03A1: /// HID GET_PROTOCOL