From 86b123141bea2e3f831a57eb115368cbbbdb2da1 Mon Sep 17 00:00:00 2001 From: Thomas Kriechbaumer Date: Sat, 12 Mar 2022 13:42:25 +0100 Subject: docs: fix code sample (#16623) --- docs/feature_pointing_device.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'docs/feature_pointing_device.md') diff --git a/docs/feature_pointing_device.md b/docs/feature_pointing_device.md index 23a16b843d..8c51865558 100644 --- a/docs/feature_pointing_device.md +++ b/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; } -- cgit v1.2.3