1
0
Fork 0

[Bug] Fix compile issues for boards with custom matrix (#14323)

This commit is contained in:
Drashna Jael're 2021-09-05 15:35:42 -07:00 committed by GitHub
parent 8d6d8cfadf
commit 1e1be4c229
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 58 additions and 2 deletions

View file

@ -26,6 +26,17 @@ static matrix_row_t matrix_debouncing[MATRIX_COLS];
static bool debouncing = false;
static uint16_t debouncing_time = 0;
// user-defined overridable functions
__attribute__((weak)) void matrix_init_kb(void) { matrix_init_user(); }
__attribute__((weak)) void matrix_scan_kb(void) { matrix_scan_user(); }
__attribute__((weak)) void matrix_init_user(void) {}
__attribute__((weak)) void matrix_scan_user(void) {}
// helper functions
void matrix_init(void)
{
//debug_enable = true;