summaryrefslogtreecommitdiffstats
path: root/quantum/split_common/matrix.c
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2020-02-25 14:10:04 +0000
committerGitHub <noreply@github.com>2020-02-25 14:10:04 +0000
commitf6111d49bbfeb90fdb86c4595ba339590b364da7 (patch)
tree7d6cae52cc4a7d850ab9104f8f92d65c1d39622d /quantum/split_common/matrix.c
parent891d28a37954ada620fab3727499fe2e9ee3fe65 (diff)
Split - Avoid race condition during matrix_init_quantum (#8235)
* Avoid race condition during matrix_init_quantum * spelling is hard
Diffstat (limited to 'quantum/split_common/matrix.c')
-rw-r--r--quantum/split_common/matrix.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/quantum/split_common/matrix.c b/quantum/split_common/matrix.c
index a82334128b..8b91f8ca83 100644
--- a/quantum/split_common/matrix.c
+++ b/quantum/split_common/matrix.c
@@ -190,7 +190,7 @@ static bool read_rows_on_col(matrix_row_t current_matrix[], uint8_t current_col)
#endif
void matrix_init(void) {
- keyboard_split_setup();
+ split_pre_init();
// Set pinout for right half if pinout for that half is defined
if (!isLeftHand) {
@@ -231,6 +231,8 @@ void matrix_init(void) {
debounce_init(ROWS_PER_HAND);
matrix_init_quantum();
+
+ split_post_init();
}
void matrix_post_scan(void) {