]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Fix compilation error when I2C and encoder is enabled for split code
authorDanny Nguyen <danny@keeb.io>
Mon, 3 Jun 2019 03:29:51 +0000 (23:29 -0400)
committerDrashna Jaelre <drashna@live.com>
Mon, 3 Jun 2019 04:23:35 +0000 (21:23 -0700)
quantum/split_common/transport.c

index a3539576f5103046230dd810080a28047fc7b37f..b32d48eb88c7946a5289ddbca66a5228f74adfbb 100644 (file)
@@ -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