diff options
author | tmk <nobody@nowhere> | 2014-07-21 18:17:52 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2014-07-21 18:17:52 +0900 |
commit | 79840c678e13f9a737f80048bc3b9c9c55e3fc77 (patch) | |
tree | 7095873be909856ad89a4f8f9e6af2ce7611c9da /protocol/adb.c | |
parent | 31b3e4bc3832381202e8179c2274315d4d975e22 (diff) |
Just ignore ADB Service Request
- to support Adjustable keyboard(composite device?)
Diffstat (limited to 'protocol/adb.c')
-rw-r--r-- | protocol/adb.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/protocol/adb.c b/protocol/adb.c index a4783f36e5..f57afac937 100644 --- a/protocol/adb.c +++ b/protocol/adb.c @@ -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 |