소스 검색

Force 6KRO/Boot mode always if defined by KLL

- usbProtocol = 0;
master
Jacob Alexander 7 년 전
부모
커밋
22a24e967b
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6
    0
      Output/pjrcUSB/arm/usb_dev.c

+ 6
- 0
Output/pjrcUSB/arm/usb_dev.c 파일 보기

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