From 82500842f6bae2ced179fe03348cbd91604bc09f Mon Sep 17 00:00:00 2001 From: Andrew Dunai Date: Sat, 2 Jun 2018 19:14:59 +0300 Subject: Add ability to write additional code in matrix scann loop on slave. (#3072) --- keyboards/lets_split/matrix.c | 5 +++++ 1 file changed, 5 insertions(+) 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) -- cgit v1.2.1