mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
Merge pull request #642 from AndersHoglund/i2c_stretch_fix
Added I2C clock stretching.
This commit is contained in:
commit
f2482ed768
2 changed files with 5 additions and 0 deletions
|
@ -107,6 +107,8 @@ void i2cInit(I2CDevice device)
|
|||
|
||||
I2C_Init(I2Cx, &i2cInit);
|
||||
|
||||
I2C_StretchClockCmd(I2Cx, ENABLE);
|
||||
|
||||
I2C_Cmd(I2Cx, ENABLE);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue