Skip to content

Commit

Permalink
Remove matrix_power_up from dactyl/matrix.c [qmk#2065]
Browse files Browse the repository at this point in the history
It's commented out in quantum/matrix.c, and the dactyl has no power
up/down behavior beyond being unplugged (which goes to matrix_init), so
there's no sense keeping it around.
  • Loading branch information
ErinCall committed Mar 25, 2018
1 parent e968d3d commit 6921f48
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions keyboards/handwired/dactyl/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,28 +140,6 @@ void matrix_init(void)
matrix_init_quantum();
}

void matrix_power_up(void) {
init_expander();

#if (DIODE_DIRECTION == COL2ROW)
unselect_rows();
init_cols();
#elif (DIODE_DIRECTION == ROW2COL)
unselect_cols();
init_rows();
#endif

// initialize matrix state: all keys off
for (uint8_t i=0; i < MATRIX_ROWS; i++) {
matrix[i] = 0;
}

#ifdef DEBUG_MATRIX_SCAN_RATE
matrix_timer = timer_read32();
matrix_scan_count = 0;
#endif
}

void init_expander(void) {
if (! i2c_initialized) {
i2c_init();
Expand Down

0 comments on commit 6921f48

Please sign in to comment.