diff options
| -rw-r--r-- | quantum/split_common/transport.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/quantum/split_common/transport.c b/quantum/split_common/transport.c index 3696a2aba..631d913f7 100644 --- a/quantum/split_common/transport.c +++ b/quantum/split_common/transport.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | #include <string.h> | ||
| 1 | 2 | ||
| 2 | #include "config.h" | 3 | #include "config.h" |
| 3 | #include "matrix.h" | 4 | #include "matrix.h" |
| @@ -59,9 +60,8 @@ bool transport_master(matrix_row_t matrix[]) { | |||
| 59 | } | 60 | } |
| 60 | 61 | ||
| 61 | void transport_slave(matrix_row_t matrix[]) { | 62 | void transport_slave(matrix_row_t matrix[]) { |
| 62 | for (int i = 0; i < ROWS_PER_HAND * sizeof(matrix_row_t); ++i) { | 63 | // Copy matrix to I2C buffer |
| 63 | i2c_slave_reg[I2C_KEYMAP_START + i] = matrix[i]; | 64 | memcpy((void*)(i2c_slave_reg + I2C_KEYMAP_START), (void *)matrix, ROWS_PER_HAND * sizeof(matrix_row_t) ); |
| 64 | } | ||
| 65 | 65 | ||
| 66 | // Read Backlight Info | 66 | // Read Backlight Info |
| 67 | # ifdef BACKLIGHT_ENABLE | 67 | # ifdef BACKLIGHT_ENABLE |
