From 86082f90fa582e3b419dbd77228ff497b2ee56cf Mon Sep 17 00:00:00 2001 From: tmk Date: Wed, 9 Oct 2013 12:20:03 +0900 Subject: Change ADB scan delay 12ms --- converter/adb_usb/matrix.c | 2 +- protocol/adb.c | 6 ++++-- 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) 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; 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) /* * 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! + * Thanks a lot, blargg! + * + * */ uint16_t adb_host_kbd_recv(void) { -- cgit v1.2.3-24-g4f1b