Fix debug print of ps2_mouse
This commit is contained in:
parent
6f66f9955c
commit
dd73ce4a6b
@ -82,9 +82,14 @@ void ps2_mouse_task(void)
|
|||||||
mouse_report.x = ps2_host_recv_response();
|
mouse_report.x = ps2_host_recv_response();
|
||||||
mouse_report.y = ps2_host_recv_response();
|
mouse_report.y = ps2_host_recv_response();
|
||||||
} else {
|
} 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;
|
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 moves or buttons state changes */
|
||||||
if (mouse_report.x || mouse_report.y ||
|
if (mouse_report.x || mouse_report.y ||
|
||||||
|
Reference in New Issue
Block a user