Use correct CS defines to disable chip selects

Repair one more cut and past mistake I made.
 
https://github.com/dipspb/PX4Firmware/blob/px4-master-sensor_reset_fix/src/drivers/px4fmu/fmu.cpp#L2167-L2170

Should not have OFF
This commit is contained in:
David Sidrane
2016-03-04 04:56:01 -10:00
committed by Lorenz Meier
parent e4d71ec682
commit f0b770a3ce

View File

@@ -2164,10 +2164,10 @@ PX4FMU::sensor_reset(int ms)
* required for some peripheral
* state machines
*/
stm32_gpiowrite(GPIO_SPI_CS_OFF_MPU9250, 1);
stm32_gpiowrite(GPIO_SPI_CS_OFF_HMC5983, 1);
stm32_gpiowrite(GPIO_SPI_CS_OFF_MS5611, 1);
stm32_gpiowrite(GPIO_SPI_CS_OFF_ICM_20608_G, 1);
stm32_gpiowrite(GPIO_SPI_CS_MPU9250, 1);
stm32_gpiowrite(GPIO_SPI_CS_HMC5983, 1);
stm32_gpiowrite(GPIO_SPI_CS_MS5611, 1);
stm32_gpiowrite(GPIO_SPI_CS_ICM_20608_G, 1);
stm32_configgpio(GPIO_SPI1_SCK);
stm32_configgpio(GPIO_SPI1_MISO);