aboutsummaryrefslogtreecommitdiff
path: root/keyboards/redox_w/matrix.c
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2021-02-06 09:20:48 +1100
committerGitHub <noreply@github.com>2021-02-06 09:20:48 +1100
commit5ea92a9c1cbe3e20bf4830d550d797a8e9650da8 (patch)
tree75ea1413ae4fa23bd0b1230629b6a3b3e215c5eb /keyboards/redox_w/matrix.c
parent464eb7137d27e3a31e85032c85c9fda627a8b33f (diff)
downloadqmk_firmware-5ea92a9c1cbe3e20bf4830d550d797a8e9650da8.tar.gz
qmk_firmware-5ea92a9c1cbe3e20bf4830d550d797a8e9650da8.zip
Serial refactor (#11521)
Diffstat (limited to 'keyboards/redox_w/matrix.c')
-rw-r--r--keyboards/redox_w/matrix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/keyboards/redox_w/matrix.c b/keyboards/redox_w/matrix.c
index 31233af10..15ca66e34 100644
--- a/keyboards/redox_w/matrix.c
+++ b/keyboards/redox_w/matrix.c
@@ -24,6 +24,7 @@
24#include "util.h" 24#include "util.h"
25#include "matrix.h" 25#include "matrix.h"
26#include "timer.h" 26#include "timer.h"
27#include "protocol/serial.h"
27 28
28#if (MATRIX_COLS <= 8) 29#if (MATRIX_COLS <= 8)
29# define print_matrix_header() print("\nr/c 01234567\n") 30# define print_matrix_header() print("\nr/c 01234567\n")
@@ -86,12 +87,11 @@ uint8_t matrix_cols(void) {
86void matrix_init(void) { 87void matrix_init(void) {
87 88
88 matrix_init_quantum(); 89 matrix_init_quantum();
90 serial_init();
89} 91}
90 92
91uint8_t matrix_scan(void) 93uint8_t matrix_scan(void)
92{ 94{
93 SERIAL_UART_INIT();
94
95 uint32_t timeout = 0; 95 uint32_t timeout = 0;
96 96
97 //the s character requests the RF slave to send the matrix 97 //the s character requests the RF slave to send the matrix