diff options
| author | Manna Harbour <51143715+manna-harbour@users.noreply.github.com> | 2020-05-29 03:02:12 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-28 18:02:12 +0100 |
| commit | 7b8a013826ad90714a05ea522de53adf964ab3b9 (patch) | |
| tree | f7c133ca44edae2b20ee0faa83cfe35990642d48 | |
| parent | 5263dfd46520bd40af1d2b39364436df1c96a111 (diff) | |
| download | qmk_firmware-7b8a013826ad90714a05ea522de53adf964ab3b9.tar.gz qmk_firmware-7b8a013826ad90714a05ea522de53adf964ab3b9.zip | |
Fix crkbd slave matrix print to require debug_matrix (#9217)
* Fix crkbd slave matrix print to require debug_matrix
* Remove redundant include
Co-authored-by: Ryan <fauxpark@gmail.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
| -rw-r--r-- | keyboards/crkbd/rev1/split_scomm.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/keyboards/crkbd/rev1/split_scomm.c b/keyboards/crkbd/rev1/split_scomm.c index a1fe6ba5b..12b00f684 100644 --- a/keyboards/crkbd/rev1/split_scomm.c +++ b/keyboards/crkbd/rev1/split_scomm.c | |||
| @@ -8,7 +8,7 @@ | |||
| 8 | #include <split_scomm.h> | 8 | #include <split_scomm.h> |
| 9 | #include "serial.h" | 9 | #include "serial.h" |
| 10 | #ifdef CONSOLE_ENABLE | 10 | #ifdef CONSOLE_ENABLE |
| 11 | #include <print.h> | 11 | #include "debug.h" |
| 12 | #endif | 12 | #endif |
| 13 | 13 | ||
| 14 | uint8_t volatile serial_slave_buffer[SERIAL_SLAVE_BUFFER_LENGTH] = {0}; | 14 | uint8_t volatile serial_slave_buffer[SERIAL_SLAVE_BUFFER_LENGTH] = {0}; |
| @@ -63,9 +63,11 @@ int serial_update_buffers(int master_update) | |||
| 63 | if( smatstatus == TRANSACTION_END ) { | 63 | if( smatstatus == TRANSACTION_END ) { |
| 64 | s_change_old = s_change_new; | 64 | s_change_old = s_change_new; |
| 65 | #ifdef CONSOLE_ENABLE | 65 | #ifdef CONSOLE_ENABLE |
| 66 | uprintf("slave matrix = %b %b %b %b\n", | 66 | if (debug_matrix) { |
| 67 | uprintf("slave matrix = %b %b %b %b\n", | ||
| 67 | serial_slave_buffer[0], serial_slave_buffer[1], | 68 | serial_slave_buffer[0], serial_slave_buffer[1], |
| 68 | serial_slave_buffer[2], serial_slave_buffer[3]); | 69 | serial_slave_buffer[2], serial_slave_buffer[3]); |
| 70 | } | ||
| 69 | #endif | 71 | #endif |
| 70 | } | 72 | } |
| 71 | } else { | 73 | } else { |
