summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2014-06-15 14:04:16 +0900
committertmk <nobody@nowhere>2014-06-15 14:04:16 +0900
commit382eaebd3db595d8c4943f293d765e6b66a7e695 (patch)
treef41f95727c79e9f599e1d8ec9d238502d8828f45
parentaad92d81cb0cf95c4f082cc8000d036af79562ef (diff)
Fix debug print of ps2_mouse
-rw-r--r--protocol/ps2_mouse.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/protocol/ps2_mouse.c b/protocol/ps2_mouse.c
index 4702f12c40..c3e8b3c1c3 100644
--- a/protocol/ps2_mouse.c
+++ b/protocol/ps2_mouse.c
@@ -82,9 +82,14 @@ void ps2_mouse_task(void)
mouse_report.x = ps2_host_recv_response();
mouse_report.y = ps2_host_recv_response();
} else {
- if (!debug_mouse) print("ps2_mouse: fail to get mouse packet\n");
+ if (debug_mouse) print("ps2_mouse: fail to get mouse packet\n");
return;
}
+ xprintf("%ud ", timer_read());
+ print("ps2_mouse raw: [");
+ phex(mouse_report.buttons); print("|");
+ print_hex8((uint8_t)mouse_report.x); print(" ");
+ print_hex8((uint8_t)mouse_report.y); print("]\n");
/* if mouse moves or buttons state changes */
if (mouse_report.x || mouse_report.y ||