aboutsummaryrefslogtreecommitdiff
path: root/protocol/ps2_mouse.c
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2013-11-19 03:25:31 +0900
committertmk <nobody@nowhere>2013-11-19 03:25:31 +0900
commit44d2d5f5fda3fbdf73e311067807026bb53798c0 (patch)
tree3a28a78f92f24adf713f8ad20951727c72e9cad7 /protocol/ps2_mouse.c
parent9d40be19908394e44cdda5d3c73d21e8d3795e72 (diff)
downloadqmk_firmware-44d2d5f5fda3fbdf73e311067807026bb53798c0.tar.gz
qmk_firmware-44d2d5f5fda3fbdf73e311067807026bb53798c0.zip
Fix delay of PS/2 mouse init
Diffstat (limited to 'protocol/ps2_mouse.c')
-rw-r--r--protocol/ps2_mouse.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/protocol/ps2_mouse.c b/protocol/ps2_mouse.c
index 701d97213..5e0b3657c 100644
--- a/protocol/ps2_mouse.c
+++ b/protocol/ps2_mouse.c
@@ -49,16 +49,14 @@ uint8_t ps2_mouse_init(void) {
49 49
50 ps2_host_init(); 50 ps2_host_init();
51 51
52 // Not reliable: sometime fail to initialize mouse 52 _delay_ms(1000); // wait for powering up
53 53
54 // send Reset 54 // send Reset
55 _delay_ms(1000); // wait for powering up
56 rcv = ps2_host_send(0xFF); 55 rcv = ps2_host_send(0xFF);
57 print("ps2_mouse_init: send Reset: "); 56 print("ps2_mouse_init: send Reset: ");
58 phex(rcv); phex(ps2_error); print("\n"); 57 phex(rcv); phex(ps2_error); print("\n");
59 58
60 // read completion code of BAT 59 // read completion code of BAT
61 //_delay_ms(1000); // wait for Basic Assurance Test
62 rcv = ps2_host_recv(); 60 rcv = ps2_host_recv();
63 print("ps2_mouse_init: read BAT: "); 61 print("ps2_mouse_init: read BAT: ");
64 phex(rcv); phex(ps2_error); print("\n"); 62 phex(rcv); phex(ps2_error); print("\n");