Just ignore ADB Service Request
authortmk <nobody@nowhere>
Mon, 21 Jul 2014 09:17:52 +0000 (18:17 +0900)
committertmk <nobody@nowhere>
Mon, 21 Jul 2014 09:17:52 +0000 (18:17 +0900)
- to support Adjustable keyboard(composite device?)

protocol/adb.c

index a4783f36e54886479712c6b1fa6f488d74292c1d..f57afac9374a6a43e94925a07bca7e1dd1b74899 100644 (file)
@@ -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
Imprint / Impressum