Fix delay of PS/2 mouse init
authortmk <nobody@nowhere>
Mon, 18 Nov 2013 18:25:31 +0000 (03:25 +0900)
committertmk <nobody@nowhere>
Mon, 18 Nov 2013 18:25:31 +0000 (03:25 +0900)
protocol/ps2_mouse.c

index 701d97213c5938e7dfe444e5b3f4f36d3e502dd7..5e0b3657caf373c4cdca3db5bf008281bb5a52a6 100644 (file)
@@ -49,16 +49,14 @@ uint8_t ps2_mouse_init(void) {
 
     ps2_host_init();
 
-    // Not reliable: sometime fail to initialize mouse
+    _delay_ms(1000);    // wait for powering up
 
     // send Reset
-    _delay_ms(1000);    // wait for powering up
     rcv = ps2_host_send(0xFF);
     print("ps2_mouse_init: send Reset: ");
     phex(rcv); phex(ps2_error); print("\n");
 
     // read completion code of BAT
-    //_delay_ms(1000);    // wait for Basic Assurance Test
     rcv = ps2_host_recv();
     print("ps2_mouse_init: read BAT: ");
     phex(rcv); phex(ps2_error); print("\n");
Imprint / Impressum