Skip to content
Snippets Groups Projects
Commit cd696ed3 authored by James Churchill's avatar James Churchill Committed by MechMerlin
Browse files

Fix i2c splits with >8 columns (#5454)

parent ab294813
Branches
No related tags found
No related merge requests found
#include <string.h>
#include "config.h"
#include "matrix.h"
......@@ -59,9 +60,8 @@ bool transport_master(matrix_row_t matrix[]) {
}
void transport_slave(matrix_row_t matrix[]) {
for (int i = 0; i < ROWS_PER_HAND * sizeof(matrix_row_t); ++i) {
i2c_slave_reg[I2C_KEYMAP_START + i] = matrix[i];
}
// Copy matrix to I2C buffer
memcpy((void*)(i2c_slave_reg + I2C_KEYMAP_START), (void *)matrix, ROWS_PER_HAND * sizeof(matrix_row_t) );
// Read Backlight Info
# ifdef BACKLIGHT_ENABLE
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment