Skip to content

Commit 90b989c

Browse files
jonas-5ae29ckartben
authored andcommitted
drivers: sensor: st: add missing buffer size config
Previously, the Kconfig option CONFIG_STMEMSC_I3C_I2C_WRITE_BUFFER_SIZE has been introduced to replace i2c_burst_write with i2c_write using a buffer combining the address and data. See commit 5f8da77 Add missing buffer size config to stmemsc_i2c_write_incr to replace fixed buffer size. Signed-off-by: Jonas Spinner <jonas.spinner@burkert.com>
1 parent b6604f1 commit 90b989c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/sensor/st/stmemsc/stmemsc_i2c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ int stmemsc_i2c_read_incr(const struct i2c_dt_spec *stmemsc,
4141
int stmemsc_i2c_write_incr(const struct i2c_dt_spec *stmemsc,
4242
uint8_t reg_addr, uint8_t *value, uint8_t len)
4343
{
44-
uint8_t buf[17];
44+
uint8_t buf[CONFIG_STMEMSC_I3C_I2C_WRITE_BUFFER_SIZE];
4545

4646
__ASSERT_NO_MSG(len <= sizeof(buf) - 1);
4747

0 commit comments

Comments
 (0)