xtensa/esp32: Fix wrong position for ++ operator on I2C driver

Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
This commit is contained in:
Gustavo Henrique Nihei 2021-09-21 16:30:53 -03:00 committed by saramonteiro
parent e5f17f6604
commit 58f87ef443

View File

@ -488,7 +488,7 @@ static void esp32_i2c_senddata(FAR struct esp32_i2c_priv_s *priv)
/* Transfer the data from the msg buffer to the TX FIFO */ /* Transfer the data from the msg buffer to the TX FIFO */
for (i = 0; i < n; i ++) for (i = 0; i < n; i++)
{ {
esp32_i2c_set_reg(priv, I2C_DATA_OFFSET, esp32_i2c_set_reg(priv, I2C_DATA_OFFSET,
msg->buffer[priv->bytes + i]); msg->buffer[priv->bytes + i]);