diff options
author | tmk <nobody@nowhere> | 2013-10-08 12:23:25 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2013-10-08 12:23:25 +0900 |
commit | e8e8f93bcf0cdc8d72d35662db5a1da4716762b8 (patch) | |
tree | 70d355d125b724092f8891bee3753e169063725e /protocol/adb.c | |
parent | 63b3e2cbfbca26ca3705542fa241f6604d6aadda (diff) |
Fix ADB missing keystrokes problem Thanks, blargg! #14
- Add delay between scans to prevent overlaod of ADB keyboard controllers
- <http://geekhack.org/index.php?topic=14290.msg1068919#msg1068919>
Diffstat (limited to 'protocol/adb.c')
-rw-r--r-- | protocol/adb.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/protocol/adb.c b/protocol/adb.c index e4e26b7d7b..155d223fe7 100644 --- a/protocol/adb.c +++ b/protocol/adb.c @@ -83,6 +83,12 @@ bool adb_host_psw(void) } #endif +/* + * 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. + * + * Thanks a lot, blargg! <http://geekhack.org/index.php?topic=14290.msg1068919#msg1068919> + */ uint16_t adb_host_kbd_recv(void) { uint16_t data = 0; |