Navigation Menu

Skip to content

Commit

Permalink
Just ignore ADB Service Request
Browse files Browse the repository at this point in the history
- to support Adjustable keyboard(composite device?)
  • Loading branch information
yashikno committed Jul 21, 2014
1 parent 31b3e4b commit 79840c6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions protocol/adb.c
Expand Up @@ -128,6 +128,10 @@ uint16_t adb_host_kbd_recv(void)
attention();
send_byte(0x2C); // Addr:Keyboard(0010), Cmd:Talk(11), Register0(00)
place_bit0(); // Stopbit(0)
if (!wait_data_hi(500)) { // Service Request(310us Adjustable Keyboard): just ignored
sei();
return -30; // something wrong
}
if (!wait_data_lo(500)) { // Tlt/Stop to Start(140-260us)
sei();
return 0; // No data to send
Expand Down

0 comments on commit 79840c6

Please sign in to comment.