소스 검색

Fixing NKRO modifier bug

- Modifier byte was being cleared after each send (needed for Boot Mode only)
simple
Jacob Alexander 9 년 전
부모
커밋
a7b1d94465
1개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 4
    3
      Output/pjrcUSB/output_com.c

+ 4
- 3
Output/pjrcUSB/output_com.c 파일 보기

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