mirror of
https://github.com/qmk/qmk_firmware
synced 2024-11-18 09:55:48 +00:00
ensure hhkb runs matrix_init_quantum (#9629)
This commit is contained in:
parent
c4d778a302
commit
57f408cff5
2 changed files with 16 additions and 12 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue