diff options
author | worthlessowl <53881082+worthlessowl@users.noreply.github.com> | 2019-11-02 07:19:04 +0700 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2019-11-01 17:19:04 -0700 |
commit | 3546932a8b25ea199f33b8a39c49ccaa5f7ca3c9 (patch) | |
tree | 02eae85f1606a840905f3e3b0097702abe4cab82 /keyboards/handwired/owlet60/matrix.c | |
parent | f8ce91b62484f874c314c26293b47a037f7a1068 (diff) |
[Keyboard] Owlet60 keymap removal, matrix.c and owlet60.h fix (#7235)
Diffstat (limited to 'keyboards/handwired/owlet60/matrix.c')
-rw-r--r-- | keyboards/handwired/owlet60/matrix.c | 8 |
1 files changed, 4 insertions, 4 deletions
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 { |