This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 4f957f8031e96dfb69be864187a0f3bb45217f30 Author: Jukka Laitinen <juk...@ssrc.tii.ae> AuthorDate: Tue Jan 31 10:28:18 2023 +0400 arch/arm/src/lc823450/lc823450_i2c.c: Remove extra rounding after MSEC2TIC change to round up Signed-off-by: Jukka Laitinen <juk...@ssrc.tii.ae> --- arch/arm/src/lc823450/lc823450_i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/src/lc823450/lc823450_i2c.c b/arch/arm/src/lc823450/lc823450_i2c.c index 69960dd826..b507702cf8 100644 --- a/arch/arm/src/lc823450/lc823450_i2c.c +++ b/arch/arm/src/lc823450/lc823450_i2c.c @@ -305,7 +305,7 @@ lc823450_i2c_sem_waitdone(struct lc823450_i2c_priv_s *priv) /* Get the timeout value */ - timeout = MSEC2TICK(priv->timeoms + (MSEC_PER_TICK / 2)); + timeout = MSEC2TICK(priv->timeoms); timeout += SEC2TICK(CONFIG_LC823450_I2C_TIMEOSEC); /* Signal the interrupt handler that we are waiting. NOTE: Interrupts