Browse Source

Add ability to write additional code in matrix scann loop on slave. (#3072)

Andrew Dunai 7 years ago
parent
commit
82500842f6
1 changed files with 5 additions and 0 deletions
  1. 5 0
      keyboards/lets_split/matrix.c

+ 5 - 0
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)