Skip to content

Commit

Permalink
Fix DEBUG_MATRIX_SCAN_RATE on chibiOS when console is enabled (qmk#11776
Browse files Browse the repository at this point in the history
)

* Fix DEBUG_MATRIX_SCAN_RATE on chibiOS when console is enabled

* update type in dprintf

Co-authored-by: Ryan <fauxpark@gmail.com>

Co-authored-by: Ryan <fauxpark@gmail.com>
  • Loading branch information
drashna and fauxpark committed Feb 3, 2021
1 parent 3bb66d1 commit c0de49e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tmk_core/common/keyboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ void matrix_scan_perf_task(void) {
uint32_t timer_now = timer_read32();
if (TIMER_DIFF_32(timer_now, matrix_timer) > 1000) {
# if defined(CONSOLE_ENABLE)
dprintf("matrix scan frequency: %d\n", matrix_scan_count);
dprintf("matrix scan frequency: %lu\n", matrix_scan_count);
# endif
last_matrix_scan_count = matrix_scan_count;
matrix_timer = timer_now;
Expand Down

0 comments on commit c0de49e

Please sign in to comment.