gustavonihei commented on code in PR #6468: URL: https://github.com/apache/incubator-nuttx/pull/6468#discussion_r901034958
########## arch/risc-v/src/esp32c3/esp32c3_i2c.c: ########## @@ -1454,6 +1472,10 @@ static inline void esp32c3_i2c_process(struct esp32c3_i2c_priv_s *priv, if (priv->bytes == msg->length) { priv->i2cstate = I2CSTATE_STOP; + if ((msg->flags & I2C_M_NOSTOP) != 0) + { + priv->i2cstate = I2CSTATE_FINISH; + } Review Comment: ```suggestion if ((msg->flags & I2C_M_NOSTOP) == 0) { priv->i2cstate = I2CSTATE_STOP; } #ifndef CONFIG_I2C_POLLED else { priv->i2cstate = I2CSTATE_FINISH; } #endif ``` `I2CSTATE_FINISH` does not apply for Polled I2C. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org