aboutsummaryrefslogtreecommitdiffstats
path: root/quantum/split_common
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/split_common')
-rw-r--r--quantum/split_common/post_config.h4
-rw-r--r--quantum/split_common/transport.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/quantum/split_common/post_config.h b/quantum/split_common/post_config.h
index 0e59df3d0..ff0fc5e19 100644
--- a/quantum/split_common/post_config.h
+++ b/quantum/split_common/post_config.h
@@ -4,6 +4,10 @@
#define RGBLIGHT_SPLIT
#endif
+ #ifndef F_SCL
+ #define F_SCL 100000UL // SCL frequency
+ #endif
+
#else // use serial
// When using serial, the user must define RGBLIGHT_SPLIT explicitly
// in config.h as needed.
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