Bläddra i källkod

Force 6KRO/Boot mode always if defined by KLL

- usbProtocol = 0;
master
Jacob Alexander 7 år sedan
förälder
incheckning
22a24e967b
1 ändrade filer med 6 tillägg och 0 borttagningar
  1. 6
    0
      Output/pjrcUSB/arm/usb_dev.c

+ 6
- 0
Output/pjrcUSB/arm/usb_dev.c Visa fil

@@ -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