Add the 20602 start command for the AUAV x2.1 to the ROMFS rc.sensors file

This commit is contained in:
Phillip Kocmoud
2017-02-17 09:18:22 +01:00
committed by Lorenz Meier
parent 36e2bc8ae7
commit e4afce8b1b
2 changed files with 10 additions and 5 deletions
+5 -5
View File
@@ -94,13 +94,13 @@ __EXPORT void stm32_spi1select(FAR struct spi_dev_s *dev, enum spi_dev_e devid,
switch (devid) {
/* intended fallthrough */
/* intended fallthrough */
case PX4_SPIDEV_ICM_20602:
/* intended fallthrough */
case PX4_SPIDEV_ICM_20608:
/* Making sure the other peripherals are not selected */
px4_arch_gpiowrite(GPIO_SPI_CS_ICM_2060X, !selected);
/* intended fallthrough */
case PX4_SPIDEV_ICM_20608:
/* Making sure the other peripherals are not selected */
px4_arch_gpiowrite(GPIO_SPI_CS_ICM_2060X, !selected);
px4_arch_gpiowrite(GPIO_SPI_CS_BARO, 1);
px4_arch_gpiowrite(GPIO_SPI_CS_MPU, 1);
break;