From 7b31fc54df6543e3426cce159a915fdaa947b57d Mon Sep 17 00:00:00 2001
From: Dasky <32983009+daskygit@users.noreply.github.com>
Date: Wed, 26 Jan 2022 19:24:29 +0000
Subject: Enable a default task throttle for split pointing. (#15925)

---
 quantum/split_common/transactions.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'quantum/split_common')

diff --git a/quantum/split_common/transactions.c b/quantum/split_common/transactions.c
index 81f9836382..d9e8fd1f6b 100644
--- a/quantum/split_common/transactions.c
+++ b/quantum/split_common/transactions.c
@@ -624,7 +624,7 @@ static void pointing_handlers_slave(matrix_row_t master_matrix[], matrix_row_t s
 #    endif
     report_mouse_t temp_report;
     uint16_t       temp_cpi;
-#    ifdef 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;
-- 
cgit v1.2.3