summaryrefslogtreecommitdiff
path: root/quantum
diff options
context:
space:
mode:
authoruqs <uqs@FreeBSD.org>2022-04-19 12:29:17 +0200
committerGitHub <noreply@github.com>2022-04-19 20:29:17 +1000
commit690dc4bdafe9e5e23e201d6bc839c32106074288 (patch)
tree2d6678346b3d99958854028720f4390689b7f165 /quantum
parent9f63bce70bd8e065e54de17c48994c3c008d2e0a (diff)
downloadqmk_firmware-690dc4bdafe9e5e23e201d6bc839c32106074288.tar.gz
qmk_firmware-690dc4bdafe9e5e23e201d6bc839c32106074288.zip
Add support for multiple sensors to pmw3360 (#15996)
Diffstat (limited to 'quantum')
-rw-r--r--quantum/pointing_device_drivers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/quantum/pointing_device_drivers.c b/quantum/pointing_device_drivers.c
index 11cbf6594e..56363c7ac6 100644
--- a/quantum/pointing_device_drivers.c
+++ b/quantum/pointing_device_drivers.c
@@ -200,11 +200,11 @@ const pointing_device_driver_t pointing_device_driver = {
// clang-format on
#elif defined(POINTING_DEVICE_DRIVER_pmw3360)
static void pmw3360_device_init(void) {
- pmw3360_init();
+ pmw3360_init(0);
}
report_mouse_t pmw3360_get_report(report_mouse_t mouse_report) {
- report_pmw3360_t data = pmw3360_read_burst();
+ report_pmw3360_t data = pmw3360_read_burst(0);
static uint16_t MotionStart = 0; // Timer for accel, 0 is resting state
if (data.isOnSurface && data.isMotion) {