Revert "arch/arm/src/stm32f7/stm32_i2c.c: Round up stm32_i2c_toticks return value"
This reverts commit fe6f6870dcc431cecf0fa94187cff05ec040cf47.
This commit is contained in:
parent
4dd8187afe
commit
05eb8541d1
@ -784,12 +784,11 @@ static uint32_t stm32_i2c_toticks(int msgc, struct i2c_msg_s *msgs)
|
||||
bytecount += msgs[i].length;
|
||||
}
|
||||
|
||||
/* Then return a number of ticks based on a user provided scaling
|
||||
* factor, rounded up.
|
||||
/* Then return a number of microseconds based on a user provided scaling
|
||||
* factor.
|
||||
*/
|
||||
|
||||
return USEC2TICK(CONFIG_STM32F7_I2C_DYNTIMEO_USECPERBYTE * bytecount +
|
||||
CONFIG_USEC_PER_TICK / 2 - 1);
|
||||
return USEC2TICK(CONFIG_STM32F7_I2C_DYNTIMEO_USECPERBYTE * bytecount);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user