X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fdrivers%2Fao_mpu9250.c;fp=src%2Fdrivers%2Fao_mpu9250.c;h=63d8d6d7fe31ffbc32dc8c786dc349df9bfee413;hb=c2b775a6cd8888f98f086b4b730edb31bb846f91;hp=a77abf98dfe7bcfa2d6ce3b8267b1571dd7d642b;hpb=f856f20b31c542caeb5decbf3546c6a0242ab33d;p=fw%2Faltos diff --git a/src/drivers/ao_mpu9250.c b/src/drivers/ao_mpu9250.c index a77abf98..63d8d6d7 100644 --- a/src/drivers/ao_mpu9250.c +++ b/src/drivers/ao_mpu9250.c @@ -35,7 +35,7 @@ static uint8_t ao_mpu9250_configured; #if AO_MPU9250_SPI #ifndef AO_MPU9250_SPI_SPEED -#define AO_MPU9250_SPI_SPEED ao_spi_speed(1000000) /* 1MHz max SCLK */ +#define AO_MPU9250_SPI_SPEED ao_spi_speed(AO_MPU9250_SPI_BUS, 1000000) /* 1MHz max SCLK */ #endif #define ao_mpu9250_spi_get() ao_spi_get(AO_MPU9250_SPI_BUS, AO_MPU9250_SPI_SPEED)