summaryrefslogtreecommitdiffstats
path: root/keyboards/lets_split
diff options
context:
space:
mode:
authorAndrew Dunai <andunai@gmail.com>2018-06-02 19:14:59 +0300
committerDrashna Jaelre <drashna@live.com>2018-06-02 09:14:59 -0700
commit82500842f6bae2ced179fe03348cbd91604bc09f (patch)
treeab85442501c704af3b588e71f040c321c7238000 /keyboards/lets_split
parenta055a45b1319d08cd19fd397ac86a3daa200adda (diff)
Add ability to write additional code in matrix scann loop on slave. (#3072)
Diffstat (limited to 'keyboards/lets_split')
-rw-r--r--keyboards/lets_split/matrix.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/keyboards/lets_split/matrix.c b/keyboards/lets_split/matrix.c
index 904850d4d3..f753d234a1 100644
--- a/keyboards/lets_split/matrix.c
+++ b/keyboards/lets_split/matrix.c
@@ -101,6 +101,10 @@ __attribute__ ((weak))
void matrix_scan_user(void) {
}
+__attribute__ ((weak))
+void matrix_slave_scan_user(void) {
+}
+
inline
uint8_t matrix_rows(void)
{
@@ -286,6 +290,7 @@ void matrix_slave_scan(void) {
serial_slave_buffer[i] = matrix[offset+i];
}
#endif
+ matrix_slave_scan_user();
}
bool matrix_is_modified(void)