diff options
| author | Drashna Jaelre <drashna@live.com> | 2021-02-02 17:30:33 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-03 12:30:33 +1100 |
| commit | c0de49e393cf481f60f2bbd6c18ecb13d37c6254 (patch) | |
| tree | 7316578a88cbe432e3bc25e3ce048dac5703f7fb /tmk_core | |
| parent | 3bb66d1585a6a18413e958685bafc3142495a9f5 (diff) | |
| download | qmk_firmware-c0de49e393cf481f60f2bbd6c18ecb13d37c6254.tar.gz qmk_firmware-c0de49e393cf481f60f2bbd6c18ecb13d37c6254.zip | |
Fix DEBUG_MATRIX_SCAN_RATE on chibiOS when console is enabled (#11776)
* 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>
Diffstat (limited to 'tmk_core')
| -rw-r--r-- | tmk_core/common/keyboard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tmk_core/common/keyboard.c b/tmk_core/common/keyboard.c index b35620e7f..f4e9b1184 100644 --- a/tmk_core/common/keyboard.c +++ b/tmk_core/common/keyboard.c | |||
| @@ -108,7 +108,7 @@ void matrix_scan_perf_task(void) { | |||
| 108 | uint32_t timer_now = timer_read32(); | 108 | uint32_t timer_now = timer_read32(); |
| 109 | if (TIMER_DIFF_32(timer_now, matrix_timer) > 1000) { | 109 | if (TIMER_DIFF_32(timer_now, matrix_timer) > 1000) { |
| 110 | # if defined(CONSOLE_ENABLE) | 110 | # if defined(CONSOLE_ENABLE) |
| 111 | dprintf("matrix scan frequency: %d\n", matrix_scan_count); | 111 | dprintf("matrix scan frequency: %lu\n", matrix_scan_count); |
| 112 | # endif | 112 | # endif |
| 113 | last_matrix_scan_count = matrix_scan_count; | 113 | last_matrix_scan_count = matrix_scan_count; |
| 114 | matrix_timer = timer_now; | 114 | matrix_timer = timer_now; |
