Skip to content

Commit

Permalink
core: Fix matrix scan reporting interval
Browse files Browse the repository at this point in the history
The number of matrix scans per second should be counted using a 1000ms
interval, not 1001ms which will result in a slightly higher number.
  • Loading branch information
nomis committed Apr 9, 2022
1 parent e2ace19 commit b0d71ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quantum/keyboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b0d71ad

Please sign in to comment.