summaryrefslogtreecommitdiff
path: root/keyboards
diff options
context:
space:
mode:
authorMarian Rusu <rusumarian91@gmail.com>2017-11-05 17:47:34 +0000
committerJack Humbert <jack.humb@gmail.com>2017-11-13 18:52:57 -0500
commit3f1aab0c2e3f7a577753861c81e66d65e8e3e080 (patch)
treefdd23b655ca5ed510eb0c35ca15fc881c90dc8d5 /keyboards
parent43edc839982d08c9300e550b2bb9e869b541ce57 (diff)
lets_split: Fix matrix_init for ROW2COL
Signed-off-by: Marian Rusu <rusumarian91@gmail.com>
Diffstat (limited to 'keyboards')
-rw-r--r--keyboards/lets_split/matrix.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/keyboards/lets_split/matrix.c b/keyboards/lets_split/matrix.c
index 4def27239c..47cda6fa80 100644
--- a/keyboards/lets_split/matrix.c
+++ b/keyboards/lets_split/matrix.c
@@ -128,8 +128,13 @@ void matrix_init(void)
debug_matrix = true;
debug_mouse = true;
// initialize row and col
+#if (DIODE_DIRECTION == COL2ROW)
unselect_rows();
init_cols();
+#elif (DIODE_DIRECTION == ROW2COL)
+ unselect_cols();
+ init_rows();
+#endif
TX_RX_LED_INIT;