File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,11 @@ void matrix_scan_kb(void);
74
74
void matrix_init_user (void );
75
75
void matrix_scan_user (void );
76
76
77
+ #ifdef SPLIT_KEYBOARD
78
+ void matrix_slave_scan_kb (void );
79
+ void matrix_slave_scan_user (void );
80
+ #endif
81
+
77
82
#ifdef __cplusplus
78
83
}
79
84
#endif
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ extern matrix_row_t matrix[MATRIX_ROWS]; // debounced values
43
43
uint8_t thisHand , thatHand ;
44
44
45
45
// user-defined overridable functions
46
+ __attribute__((weak )) void matrix_slave_scan_kb (void ) { matrix_slave_scan_user (); }
46
47
__attribute__((weak )) void matrix_slave_scan_user (void ) {}
47
48
48
49
static inline void setPinOutput_writeLow (pin_t pin ) {
@@ -284,7 +285,7 @@ bool matrix_post_scan(void) {
284
285
} else {
285
286
transport_slave (matrix + thatHand , matrix + thisHand );
286
287
287
- matrix_slave_scan_user ();
288
+ matrix_slave_scan_kb ();
288
289
}
289
290
290
291
return changed ;
You can’t perform that action at this time.
0 commit comments