comparison 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
comparison
equal deleted inserted replaced
437:da28cecc0b5b 438:f10c2dad7f55
587 print(NL); 587 print(NL);
588 #endif 588 #endif
589 USBKeys_Protocol = setup.wValue & 0xFF; // 0 - Boot Mode, 1 - NKRO Mode 589 USBKeys_Protocol = setup.wValue & 0xFF; // 0 - Boot Mode, 1 - NKRO Mode
590 goto send; 590 goto send;
591 591
592 case 0x03A1: /// HID GET_PROTOCOL
593 #ifdef UART_DEBUG
594 print("GET_PROTOCOL - ");
595 printHex( setup.wValue );
596 print(" - ");
597 printHex( USBKeys_Protocol );
598 print(NL);
599 #endif
600 reply_buffer[0] = USBKeys_Protocol;
601 datalen = 1;
602 goto send;
603
592 // case 0xC940: 604 // case 0xC940:
593 default: 605 default:
594 #ifdef UART_DEBUG_UNKNOWN 606 #ifdef UART_DEBUG_UNKNOWN
595 print("UNKNOWN"); 607 print("UNKNOWN");
608 print(NL);
596 #endif 609 #endif
597 endpoint0_stall(); 610 endpoint0_stall();
598 return; 611 return;
599 } 612 }
600 613