Fix i2c splits with >8 columns (#5454)
This commit is contained in:
parent
ab29481391
commit
cd696ed3d1
1 changed files with 3 additions and 3 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "matrix.h"
|
#include "matrix.h"
|
||||||
|
@ -59,9 +60,8 @@ bool transport_master(matrix_row_t matrix[]) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void transport_slave(matrix_row_t matrix[]) {
|
void transport_slave(matrix_row_t matrix[]) {
|
||||||
for (int i = 0; i < ROWS_PER_HAND * sizeof(matrix_row_t); ++i) {
|
// Copy matrix to I2C buffer
|
||||||
i2c_slave_reg[I2C_KEYMAP_START + i] = matrix[i];
|
memcpy((void*)(i2c_slave_reg + I2C_KEYMAP_START), (void *)matrix, ROWS_PER_HAND * sizeof(matrix_row_t) );
|
||||||
}
|
|
||||||
|
|
||||||
// Read Backlight Info
|
// Read Backlight Info
|
||||||
# ifdef BACKLIGHT_ENABLE
|
# ifdef BACKLIGHT_ENABLE
|
||||||
|
|
Loading…
Reference in a new issue