diff options
author | Danny Nguyen <danny@keeb.io> | 2019-06-02 23:29:51 -0400 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2019-06-02 21:23:35 -0700 |
commit | 2c8149aa55641c3ebcb7c75b4f8f1c7216e9662d (patch) | |
tree | e83c00ea87ef2b1a890ad25b850aa5bb8cf0dabd | |
parent | 5971b663cb8dc55b02d2987e946691fb9aa44e97 (diff) | |
download | qmk_firmware-2c8149aa55641c3ebcb7c75b4f8f1c7216e9662d.tar.gz qmk_firmware-2c8149aa55641c3ebcb7c75b4f8f1c7216e9662d.zip |
Fix compilation error when I2C and encoder is enabled for split code
-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 |