From bf1a37ba712b3c42861e7cfabb174724791b41b6 Mon Sep 17 00:00:00 2001 From: tmk Date: Mon, 17 Jan 2011 21:51:51 +0900 Subject: PS/2 to USB keyboard converter --- ps2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ps2.c') diff --git a/ps2.c b/ps2.c index a388b74892..dd5b24129f 100644 --- a/ps2.c +++ b/ps2.c @@ -149,7 +149,7 @@ uint8_t ps2_host_recv(void) bool parity = true; ps2_error = 0; - /* cancel to sync */ + /* terminate a transmission if we have */ clock_lo(); _delay_us(100); @@ -158,7 +158,7 @@ uint8_t ps2_host_recv(void) data_hi(); /* start bit [1] */ - WAIT(clock_lo, 20000, 1); + WAIT(clock_lo, 2000, 1); // How long should we wait? WAIT(data_lo, 1, 2); WAIT(clock_hi, 50, 3); -- cgit v1.2.3