X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=protocol%2Fps2_mouse.c;h=c3e8b3c1c3354753cc3ce12d902c6978caf8af16;hb=c672cbc31c67335050dc3ba9d54acb97e5d3da0c;hp=4702f12c4042c20f5176a41521d0f422ff3b67d8;hpb=fd9ee507a557e17b5af9fcd8892868ddf07bbb7a;p=tmk_firmware.git diff --git a/protocol/ps2_mouse.c b/protocol/ps2_mouse.c index 4702f12..c3e8b3c 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 ||