mirror of
https://github.com/firewalkwithm3/qmk_firmware.git
synced 2024-11-22 19:40:29 +08:00
Two occurrences of `MATRIX_ROWS` weren't properly changed to `ROWS_PER_HAND` in #13330, causing a crash during boot on at least my Ergodox Infinity (including #13481).
This commit is contained in:
parent
89980ff004
commit
4706231831
|
@ -149,7 +149,7 @@ static void unselect_row(uint8_t row) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static void unselect_rows(void) {
|
static void unselect_rows(void) {
|
||||||
for (uint8_t x = 0; x < MATRIX_ROWS; x++) {
|
for (uint8_t x = 0; x < ROWS_PER_HAND; x++) {
|
||||||
unselect_row(x);
|
unselect_row(x);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -214,7 +214,7 @@ static void unselect_cols(void) {
|
||||||
|
|
||||||
__attribute__((weak)) void matrix_init_pins(void) {
|
__attribute__((weak)) void matrix_init_pins(void) {
|
||||||
unselect_cols();
|
unselect_cols();
|
||||||
for (uint8_t x = 0; x < MATRIX_ROWS; x++) {
|
for (uint8_t x = 0; x < ROWS_PER_HAND; x++) {
|
||||||
if (row_pins[x] != NO_PIN) {
|
if (row_pins[x] != NO_PIN) {
|
||||||
setPinInputHigh_atomic(row_pins[x]);
|
setPinInputHigh_atomic(row_pins[x]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue