altos: Add SPI bus parameter to ao_spi_speed
[fw/altos] / src / drivers / ao_companion.c
index 2315b63f43d5a87ad91ea095386da5d838f4e283..bda7805f30219c8cbd57bf22299e2c26bfa82b1f 100644 (file)
@@ -28,7 +28,7 @@
 #error HAS_COMPANION not set in ao_companion.c
 #endif
 
-#define AO_COMPANION_SPI_SPEED ao_spi_speed(200000)
+#define AO_COMPANION_SPI_SPEED ao_spi_speed(AO_COMPANION_SPI_BUS, 200000)
 
 #define COMPANION_SELECT()     do {                    \
                ao_spi_get_bit(AO_COMPANION_CS_PORT,    \