From 3546932a8b25ea199f33b8a39c49ccaa5f7ca3c9 Mon Sep 17 00:00:00 2001 From: worthlessowl <53881082+worthlessowl@users.noreply.github.com> Date: Sat, 2 Nov 2019 07:19:04 +0700 Subject: [Keyboard] Owlet60 keymap removal, matrix.c and owlet60.h fix (#7235) --- keyboards/handwired/owlet60/matrix.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'keyboards/handwired/owlet60/matrix.c') diff --git a/keyboards/handwired/owlet60/matrix.c b/keyboards/handwired/owlet60/matrix.c index 8ecce4eb12..994f527ec7 100644 --- a/keyboards/handwired/owlet60/matrix.c +++ b/keyboards/handwired/owlet60/matrix.c @@ -225,10 +225,10 @@ void matrix_init(void) { uint8_t matrix_scan(void) { bool changed = false; - + for (uint8_t current_row = 0; current_row < MATRIX_ROWS; current_row++) { changed |= read_cols_on_row(raw_matrix, current_row); - } + } debounce(raw_matrix, matrix, MATRIX_ROWS, changed); @@ -290,7 +290,7 @@ static void select_col_analog(uint8_t col) { static void mux_pin_control(const uint8_t binary[]) { // set pin0 setPinOutput(col_select_pins[0]); - if(binary[0] == 0) { + if(binary[2] == 0) { writePinLow(col_select_pins[0]); } else { @@ -306,7 +306,7 @@ static void mux_pin_control(const uint8_t binary[]) { } // set pin2 setPinOutput(col_select_pins[2]); - if(binary[2] == 0) { + if(binary[0] == 0) { writePinLow(col_select_pins[2]); } else { -- cgit v1.2.3