Skip to content

Commit

Permalink
Merge branch 'fix-303-i2c' of https://github.com/ledvinap/cleanflight
Browse files Browse the repository at this point in the history
…into ledvinap-fix-303-i2c
  • Loading branch information
hydra committed Nov 28, 2015
2 parents 9add024 + 1979962 commit b658df3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/drivers/bus_i2c_stm32f30x.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ void i2cInitPort(I2C_TypeDef *I2Cx)

GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF;
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;
GPIO_InitStructure.GPIO_OType = GPIO_OType_OD;
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_NOPULL;

GPIO_InitStructure.GPIO_Pin = I2C1_SCL_PIN;
Expand Down Expand Up @@ -152,7 +152,7 @@ void i2cInitPort(I2C_TypeDef *I2Cx)
// Init pins
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF;
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;
GPIO_InitStructure.GPIO_OType = GPIO_OType_OD;
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_NOPULL;

GPIO_InitStructure.GPIO_Pin = I2C2_SCL_PIN;
Expand Down

0 comments on commit b658df3

Please sign in to comment.