浏览代码

Fix debug print of ps2_mouse

tags/v1.9
tmk 10 年前
父节点
当前提交
382eaebd3d
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6
    1
      protocol/ps2_mouse.c

+ 6
- 1
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 ||

正在加载...
取消
保存