From b0d71adeb3ade57ff363e34cf0b8f5a613949187 Mon Sep 17 00:00:00 2001 From: Simon Arlott Date: Sun, 14 Mar 2021 11:30:48 +0000 Subject: [PATCH] core: Fix matrix scan reporting interval The number of matrix scans per second should be counted using a 1000ms interval, not 1001ms which will result in a slightly higher number. --- quantum/keyboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quantum/keyboard.c b/quantum/keyboard.c index ba5609f0aabf..ce4f06ae69ba 100644 --- a/quantum/keyboard.c +++ b/quantum/keyboard.c @@ -149,7 +149,7 @@ void matrix_scan_perf_task(void) { matrix_scan_count++; uint32_t timer_now = timer_read32(); - if (TIMER_DIFF_32(timer_now, matrix_timer) > 1000) { + if (TIMER_DIFF_32(timer_now, matrix_timer) >= 1000) { # if defined(CONSOLE_ENABLE) dprintf("matrix scan frequency: %lu\n", matrix_scan_count); # endif