1
0
Fork 0

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>
This commit is contained in:
Drashna Jaelre 2021-02-02 17:30:33 -08:00 committed by GitHub
parent 3bb66d1585
commit c0de49e393
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -108,7 +108,7 @@ void matrix_scan_perf_task(void) {
uint32_t timer_now = timer_read32(); 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) # if defined(CONSOLE_ENABLE)
dprintf("matrix scan frequency: %d\n", matrix_scan_count); dprintf("matrix scan frequency: %lu\n", matrix_scan_count);
# endif # endif
last_matrix_scan_count = matrix_scan_count; last_matrix_scan_count = matrix_scan_count;
matrix_timer = timer_now; matrix_timer = timer_now;