diff options
Diffstat (limited to 'keyboards/helix/pico/matrix.c')
| -rw-r--r-- | keyboards/helix/pico/matrix.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/keyboards/helix/pico/matrix.c b/keyboards/helix/pico/matrix.c index c2940e3b3..a537ef03c 100644 --- a/keyboards/helix/pico/matrix.c +++ b/keyboards/helix/pico/matrix.c | |||
| @@ -46,7 +46,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 46 | static uint8_t debouncing = DEBOUNCE; | 46 | static uint8_t debouncing = DEBOUNCE; |
| 47 | static const int ROWS_PER_HAND = MATRIX_ROWS/2; | 47 | static const int ROWS_PER_HAND = MATRIX_ROWS/2; |
| 48 | static uint8_t error_count = 0; | 48 | static uint8_t error_count = 0; |
| 49 | uint8_t is_master = 0 ; | ||
| 50 | 49 | ||
| 51 | static const uint8_t row_pins[MATRIX_ROWS] = MATRIX_ROW_PINS; | 50 | static const uint8_t row_pins[MATRIX_ROWS] = MATRIX_ROW_PINS; |
| 52 | static const uint8_t col_pins[MATRIX_COLS] = MATRIX_COL_PINS; | 51 | static const uint8_t col_pins[MATRIX_COLS] = MATRIX_COL_PINS; |
| @@ -94,9 +93,8 @@ uint8_t matrix_cols(void) | |||
| 94 | 93 | ||
| 95 | void matrix_init(void) | 94 | void matrix_init(void) |
| 96 | { | 95 | { |
| 97 | debug_enable = true; | 96 | split_keyboard_setup(); |
| 98 | debug_matrix = true; | 97 | |
| 99 | debug_mouse = true; | ||
| 100 | // initialize row and col | 98 | // initialize row and col |
| 101 | unselect_rows(); | 99 | unselect_rows(); |
| 102 | init_cols(); | 100 | init_cols(); |
| @@ -111,8 +109,6 @@ void matrix_init(void) | |||
| 111 | matrix_debouncing[i] = 0; | 109 | matrix_debouncing[i] = 0; |
| 112 | } | 110 | } |
| 113 | 111 | ||
| 114 | is_master = has_usb(); | ||
| 115 | |||
| 116 | matrix_init_quantum(); | 112 | matrix_init_quantum(); |
| 117 | } | 113 | } |
| 118 | 114 | ||
| @@ -197,7 +193,7 @@ int serial_transaction(void) { | |||
| 197 | 193 | ||
| 198 | uint8_t matrix_scan(void) | 194 | uint8_t matrix_scan(void) |
| 199 | { | 195 | { |
| 200 | if (is_master) { | 196 | if (is_helix_master()) { |
| 201 | matrix_master_scan(); | 197 | matrix_master_scan(); |
| 202 | }else{ | 198 | }else{ |
| 203 | matrix_slave_scan(); | 199 | matrix_slave_scan(); |
