X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=quantum%2Fsplit_common%2Ftransport.c;h=b32d48eb88c7946a5289ddbca66a5228f74adfbb;hb=2c8149aa55641c3ebcb7c75b4f8f1c7216e9662d;hp=a3539576f5103046230dd810080a28047fc7b37f;hpb=5971b663cb8dc55b02d2987e946691fb9aa44e97;p=qmk_firmware.git diff --git a/quantum/split_common/transport.c b/quantum/split_common/transport.c index a3539576f..b32d48eb8 100644 --- a/quantum/split_common/transport.c +++ b/quantum/split_common/transport.c @@ -74,7 +74,7 @@ bool transport_master(matrix_row_t matrix[]) { # endif # ifdef ENCODER_ENABLE - i2c_readReg(SLAVE_I2C_ADDRESS, I2C_ENCODER_START, (void *)i2c_buffer->encoder_state, sizeof(I2C_slave_buffer_t.encoder_state), TIMEOUT); + i2c_readReg(SLAVE_I2C_ADDRESS, I2C_ENCODER_START, (void *)i2c_buffer->encoder_state, sizeof(i2c_buffer->encoder_state), TIMEOUT); encoder_update_raw(i2c_buffer->encoder_state); # endif