diff options
author | Danny Nguyen <danny@keeb.io> | 2019-06-02 23:29:51 -0400 |
---|---|---|
committer | Florian Didron <fdidron@users.noreply.github.com> | 2019-06-24 09:03:05 +0900 |
commit | b69a93d65ef3cad3c7a1784ab01d4847ad1d5f81 (patch) | |
tree | 784fb46c340628e845dd904f4e3608c8ffd4acfc /quantum/split_common | |
parent | 47909e28217d1e6f3a1268b97aa6f75ee90ac8fc (diff) |
Fix compilation error when I2C and encoder is enabled for split code
Diffstat (limited to 'quantum/split_common')
-rw-r--r-- | quantum/split_common/transport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/quantum/split_common/transport.c b/quantum/split_common/transport.c index a3539576f5..b32d48eb88 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 |