mirror of
https://github.com/apache/nuttx.git
synced 2026-10-12 00:30:23 +00:00
stm32:Fix coding standard error
This commit is contained in:
parent
48f0209b84
commit
2bbe389897
1 changed files with 1 additions and 1 deletions
|
|
@ -2303,7 +2303,6 @@ static int stm32_i2c_transfer(FAR struct i2c_master_s *dev, FAR struct i2c_msg_s
|
|||
int count)
|
||||
{
|
||||
FAR struct stm32_i2c_priv_s *priv = (struct stm32_i2c_priv_s *)dev;
|
||||
stm32_i2c_sem_wait(priv); /* Ensure that address or flags don't change meanwhile */
|
||||
uint32_t status = 0;
|
||||
#ifdef I2C1_FSMC_CONFLICT
|
||||
uint32_t ahbenr;
|
||||
|
|
@ -2311,6 +2310,7 @@ static int stm32_i2c_transfer(FAR struct i2c_master_s *dev, FAR struct i2c_msg_s
|
|||
int ret = 0;
|
||||
|
||||
DEBUGASSERT(count);
|
||||
stm32_i2c_sem_wait(priv); /* Ensure that address or flags don't change meanwhile */
|
||||
|
||||
#ifdef CONFIG_STM32_I2C_DMA
|
||||
/* stop DMA just in case */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue