diff options
Diffstat (limited to 'protocol')
| -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 a4783f36e..f57afac93 100644 --- a/protocol/adb.c +++ b/protocol/adb.c | |||
| @@ -128,6 +128,10 @@ uint16_t adb_host_kbd_recv(void) | |||
| 128 | attention(); | 128 | attention(); |
| 129 | send_byte(0x2C); // Addr:Keyboard(0010), Cmd:Talk(11), Register0(00) | 129 | send_byte(0x2C); // Addr:Keyboard(0010), Cmd:Talk(11), Register0(00) |
| 130 | place_bit0(); // Stopbit(0) | 130 | place_bit0(); // Stopbit(0) |
| 131 | if (!wait_data_hi(500)) { // Service Request(310us Adjustable Keyboard): just ignored | ||
| 132 | sei(); | ||
| 133 | return -30; // something wrong | ||
| 134 | } | ||
| 131 | if (!wait_data_lo(500)) { // Tlt/Stop to Start(140-260us) | 135 | if (!wait_data_lo(500)) { // Tlt/Stop to Start(140-260us) |
| 132 | sei(); | 136 | sei(); |
| 133 | return 0; // No data to send | 137 | return 0; // No data to send |
