浏览代码

[Bug] Fix matrix scan reporting interval (#16825)

Simon Arlott 3 年之前
父节点
当前提交
84c9d6ff39
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      quantum/keyboard.c

+ 1 - 1
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