summaryrefslogtreecommitdiff
path: root/keyboards/mschwingen
diff options
context:
space:
mode:
authorzvecr <git@zvecr.com>2022-02-25 23:45:40 +0000
committerzvecr <git@zvecr.com>2022-02-25 23:45:40 +0000
commite7931289918221081cbe2a7ea5df27a5d86324db (patch)
tree0b06145520f8aaf5ff5cb928aa5176fc2dd23619 /keyboards/mschwingen
parentc0ee3d2c79388187883b1b1b1d1a0b6842acf741 (diff)
parentcf31355f08dca311a013168eb3eb995e2fc6a3d1 (diff)
Merge remote-tracking branch 'origin/develop'
Diffstat (limited to 'keyboards/mschwingen')
-rw-r--r--keyboards/mschwingen/modelm/matrix.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/keyboards/mschwingen/modelm/matrix.c b/keyboards/mschwingen/modelm/matrix.c
index ffc1284ead..7ea20b5a11 100644
--- a/keyboards/mschwingen/modelm/matrix.c
+++ b/keyboards/mschwingen/modelm/matrix.c
@@ -24,8 +24,6 @@
#include "print.h"
#include "modelm.h"
-#define DEBUG 0
-
#define SPI_TIMEOUT 100
/* Keyboard Matrix Assignments */
@@ -62,10 +60,9 @@ static bool read_rows_on_col(matrix_row_t current_matrix[], uint8_t current_col)
row_data = spi_read() << 8;
row_data |= spi_read();
-#if DEBUG
- print_hex8(~row_data);
- uprint(" ");
-#endif
+ debug_hex8(~row_data);
+ dprint(" ");
+
// For each row...
for (uint8_t row_index = 0; row_index < MATRIX_ROWS; row_index++) {
// Store last value of row prior to reading
@@ -105,9 +102,8 @@ void matrix_init_custom(void) {
bool matrix_scan_custom(matrix_row_t current_matrix[]) {
bool changed = false;
-#if DEBUG
- uprint("\r\nScan: ");
-#endif
+ dprint("\r\nScan: ");
+
// Set col, read rows
for (uint8_t current_col = 0; current_col < MATRIX_COLS; current_col++) {
changed |= read_rows_on_col(current_matrix, current_col);