]> git.friedersdorff.com Git - max/tmk_keyboard.git/commitdiff
Change ADB scan delay 12ms
authortmk <nobody@nowhere>
Wed, 9 Oct 2013 03:20:03 +0000 (12:20 +0900)
committertmk <nobody@nowhere>
Wed, 9 Oct 2013 03:20:03 +0000 (12:20 +0900)
converter/adb_usb/matrix.c
protocol/adb.c

index 566592c93f7a83270835d51beeae83c420d09dda..7e58569715114e7ccb89c4cd0a18d8fb2eefb0d8 100644 (file)
@@ -85,7 +85,7 @@ uint8_t matrix_scan(void)
     uint8_t key0, key1;
 
     is_modified = false;
-    _delay_ms(16);  // delay for preventing overload of poor ADB keyboard controller
+    _delay_ms(12);  // delay for preventing overload of poor ADB keyboard controller
     codes = adb_host_kbd_recv();
     key0 = codes>>8;
     key1 = codes&0xFF;
index 155d223fe7ed1f0c438a2ef5226d7b4f88c5ea7e..f706255adfdee5e0d43f4260f7cb2046acce6df7 100644 (file)
@@ -85,9 +85,11 @@ bool adb_host_psw(void)
 
 /*
  * Don't call this in a row without the delay, otherwise it makes some of poor controllers
- * overloaded and misses strokes. Recommended delay is 16ms.
+ * overloaded and misses strokes. Recommended interval is 12ms.
  *
- * Thanks a lot, blargg! <http://geekhack.org/index.php?topic=14290.msg1068919#msg1068919>
+ * Thanks a lot, blargg!
+ * <http://geekhack.org/index.php?topic=14290.msg1068919#msg1068919>
+ * <http://geekhack.org/index.php?topic=14290.msg1070139#msg1070139>
  */
 uint16_t adb_host_kbd_recv(void)
 {