Skip to content
Commit e9d1015d authored by Vitor Massaru Iha's avatar Vitor Massaru Iha Committed by Anas Nashif
Browse files

drivers: i2c: esp32: Fix to_read value on i2c_esp32_read_msg()



to_read is the minimum value between I2C_ESP32_BUFFER_SIZE
and (msg.len - 1) rather than the maximum value.

Signed-off-by: default avatarVitor Massaru Iha <vitor@massaru.org>
parent 74321ec9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment