1
0
Fork 0

ensure hhkb runs matrix_init_quantum (#9629)

This commit is contained in:
Joshua Rubin 2020-07-19 20:25:30 -06:00 committed by GitHub
parent c4d778a302
commit 57f408cff5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 12 deletions

View file

@ -69,15 +69,17 @@ void matrix_init(void)
for (uint8_t i=0; i < MATRIX_ROWS; i++) _matrix1[i] = 0x00; for (uint8_t i=0; i < MATRIX_ROWS; i++) _matrix1[i] = 0x00;
matrix = _matrix0; matrix = _matrix0;
matrix_prev = _matrix1; matrix_prev = _matrix1;
matrix_init_quantum();
} }
__attribute__ ((weak)) __attribute__((weak)) void matrix_init_kb(void) { matrix_init_user(); }
void matrix_scan_user(void) {
}
void matrix_scan_kb(void) { __attribute__((weak)) void matrix_scan_kb(void) { matrix_scan_user(); }
matrix_scan_user();
} __attribute__((weak)) void matrix_init_user(void) {}
__attribute__((weak)) void matrix_scan_user(void) {}
uint8_t matrix_scan(void) uint8_t matrix_scan(void)
{ {

View file

@ -69,15 +69,17 @@ void matrix_init(void)
for (uint8_t i=0; i < MATRIX_ROWS; i++) _matrix1[i] = 0x00; for (uint8_t i=0; i < MATRIX_ROWS; i++) _matrix1[i] = 0x00;
matrix = _matrix0; matrix = _matrix0;
matrix_prev = _matrix1; matrix_prev = _matrix1;
matrix_init_quantum();
} }
__attribute__ ((weak)) __attribute__((weak)) void matrix_init_kb(void) { matrix_init_user(); }
void matrix_scan_user(void) {
}
void matrix_scan_kb(void) { __attribute__((weak)) void matrix_scan_kb(void) { matrix_scan_user(); }
matrix_scan_user();
} __attribute__((weak)) void matrix_init_user(void) {}
__attribute__((weak)) void matrix_scan_user(void) {}
uint8_t matrix_scan(void) uint8_t matrix_scan(void)
{ {