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

This commit is contained in:
Andrew Dunai 2018-06-02 19:14:59 +03:00 committed by Drashna Jaelre
parent a055a45b13
commit 82500842f6

View File

@ -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)