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

drivers: i2c: esp32: Fix command opcode on i2c_esp32_write_addr()



When I2C Master writes to slave on CMD_Controller, opcode WRITE
was set twice instead of 1 WRITE at the beginning of the
transmission.

And when Master reads from slave, on CMD_Controller,
byte_num = 1 + data_lenght instead of byte_num = 1 at the
beginning of the transmission.

Note that is for 7 bits addresses, to 10 bit adressess is added
more 1 in byte_num as can be seen in the code above this fix.

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