Mercurial > louis > kiibohd-controller
diff Output/pjrcUSB/arm/usb_dev.c @ 438:f10c2dad7f55
Adding missing GET_PROTOCOL handling
- Odd that this went unnoticed for sooooo long
- Fixes Mac OSX issue where keyboard freezes/hangs on a reboot
- Also adding missing code for usbMuxUart
author | Jacob Alexander <haata@kiibohd.com> |
---|---|
date | Mon, 16 May 2016 23:25:08 -0700 |
parents | 23a1868b4ac2 |
children | 68e19d7c953e |
line wrap: on
line diff
--- a/Output/pjrcUSB/arm/usb_dev.c Fri May 13 14:38:46 2016 -0700 +++ b/Output/pjrcUSB/arm/usb_dev.c Mon May 16 23:25:08 2016 -0700 @@ -589,10 +589,23 @@ USBKeys_Protocol = setup.wValue & 0xFF; // 0 - Boot Mode, 1 - NKRO Mode goto send; + case 0x03A1: /// HID GET_PROTOCOL + #ifdef UART_DEBUG + print("GET_PROTOCOL - "); + printHex( setup.wValue ); + print(" - "); + printHex( USBKeys_Protocol ); + print(NL); + #endif + reply_buffer[0] = USBKeys_Protocol; + datalen = 1; + goto send; + // case 0xC940: default: #ifdef UART_DEBUG_UNKNOWN print("UNKNOWN"); + print(NL); #endif endpoint0_stall(); return;