1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-17 13:25:30 +03:00

Properly set ADXL345 driver default orientation (thx enots)

Fixed compile error in i2c_soft driver which still used old GPIO init syntax.

git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@451 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
This commit is contained in:
timecop@gmail.com 2013-10-24 11:34:32 +00:00
parent 7ce9aab3d8
commit d63c1f0604
2 changed files with 2 additions and 2 deletions

View file

@ -131,7 +131,7 @@ static uint8_t I2C_ReceiveByte(void)
void i2cInit(I2C_TypeDef * I2C)
{
GPIO_Config gpio;
gpio_config_t gpio;
gpio.pin = Pin_10 | Pin_11;
gpio.speed = Speed_2MHz;