aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--converter/adb_usb/matrix.c2
-rw-r--r--protocol/adb.c6
2 files changed, 5 insertions, 3 deletions
diff --git a/converter/adb_usb/matrix.c b/converter/adb_usb/matrix.c
index 566592c93..7e5856971 100644
--- a/converter/adb_usb/matrix.c
+++ b/converter/adb_usb/matrix.c
@@ -85,7 +85,7 @@ uint8_t matrix_scan(void)
85 uint8_t key0, key1; 85 uint8_t key0, key1;
86 86
87 is_modified = false; 87 is_modified = false;
88 _delay_ms(16); // delay for preventing overload of poor ADB keyboard controller 88 _delay_ms(12); // delay for preventing overload of poor ADB keyboard controller
89 codes = adb_host_kbd_recv(); 89 codes = adb_host_kbd_recv();
90 key0 = codes>>8; 90 key0 = codes>>8;
91 key1 = codes&0xFF; 91 key1 = codes&0xFF;
diff --git a/protocol/adb.c b/protocol/adb.c
index 155d223fe..f706255ad 100644
--- a/protocol/adb.c
+++ b/protocol/adb.c
@@ -85,9 +85,11 @@ bool adb_host_psw(void)
85 85
86/* 86/*
87 * Don't call this in a row without the delay, otherwise it makes some of poor controllers 87 * Don't call this in a row without the delay, otherwise it makes some of poor controllers
88 * overloaded and misses strokes. Recommended delay is 16ms. 88 * overloaded and misses strokes. Recommended interval is 12ms.
89 * 89 *
90 * Thanks a lot, blargg! <http://geekhack.org/index.php?topic=14290.msg1068919#msg1068919> 90 * Thanks a lot, blargg!
91 * <http://geekhack.org/index.php?topic=14290.msg1068919#msg1068919>
92 * <http://geekhack.org/index.php?topic=14290.msg1070139#msg1070139>
91 */ 93 */
92uint16_t adb_host_kbd_recv(void) 94uint16_t adb_host_kbd_recv(void)
93{ 95{