diff options
author | Dasky <[email protected]> | 2022-01-26 19:24:29 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2022-01-26 19:24:29 +0000 |
commit | 7b31fc54df6543e3426cce159a915fdaa947b57d (patch) | |
tree | 895d8f447395c6977b27e89e9974a29bc8678460 /quantum/pointing_device.c | |
parent | c99cbd915f18a13ce19b0f86721bef10e80bb558 (diff) | |
download | qmk_firmware-7b31fc54df6543e3426cce159a915fdaa947b57d.tar.gz qmk_firmware-7b31fc54df6543e3426cce159a915fdaa947b57d.zip |
Enable a default task throttle for split pointing. (#15925)
Diffstat (limited to 'quantum/pointing_device.c')
-rw-r--r-- | quantum/pointing_device.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/quantum/pointing_device.c b/quantum/pointing_device.c index 23d93fa15f..cce292e0bf 100644 --- a/quantum/pointing_device.c +++ b/quantum/pointing_device.c @@ -217,16 +217,12 @@ __attribute__((weak)) void pointing_device_task(void) { }; #endif -#if defined(POINTING_DEVICE_TASK_THROTTLE_MS) +#if (POINTING_DEVICE_TASK_THROTTLE_MS > 0) static uint32_t last_exec = 0; if (timer_elapsed32(last_exec) < POINTING_DEVICE_TASK_THROTTLE_MS) { return; } last_exec = timer_read32(); -#else -# if defined(SPLIT_POINTING_ENABLE) -# pragma message("It's recommended you enable a throttle when sharing pointing devices.") -# endif #endif // Gather report info |