瀏覽代碼

docs: fix code sample (#16623)

Thomas Kriechbaumer 3 年之前
父節點
當前提交
86b123141b
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      docs/feature_pointing_device.md

+ 2 - 1
docs/feature_pointing_device.md

@@ -325,7 +325,8 @@ report_mouse_t pointing_device_task_user(report_mouse_t mouse_report) {
     if (set_scrolling) {
         mouse_report.h = mouse_report.x;
         mouse_report.v = mouse_report.y;
-        mouse_report.x = mouse_report.y = 0
+        mouse_report.x = 0;
+        mouse_report.y = 0;
     }
     return mouse_report;
 }