altos: Add SPI bus parameter to ao_spi_speed
[fw/altos] / src / drivers / ao_mpu6000.c
index c33032af7e5dc017e363b19171a585eb62e0f76a..e5594a662c6dfcb62f6d11e0acd1a78565bd2ce1 100644 (file)
@@ -32,7 +32,7 @@ static uint8_t        ao_mpu6000_configured;
 
 #if AO_MPU6000_SPI
 
-#define AO_MPU6000_SPI_SPEED   ao_spi_speed(1000000)   /* 1Mhz for all register access */
+#define AO_MPU6000_SPI_SPEED   ao_spi_speed(AO_MPU6000_SPI_BUS, 1000000)       /* 1Mhz for all register access */
 
 #define ao_mpu6000_spi_get()   ao_spi_get(AO_MPU6000_SPI_BUS, AO_MPU6000_SPI_SPEED)
 #define ao_mpu6000_spi_put()   ao_spi_put(AO_MPU6000_SPI_BUS)