From f0b770a3ce54178f3917a059740ed50840d4be1d Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Fri, 4 Mar 2016 04:56:01 -1000 Subject: [PATCH] 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 --- src/drivers/px4fmu/fmu.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/drivers/px4fmu/fmu.cpp b/src/drivers/px4fmu/fmu.cpp index d0f45689b1..65781fa68d 100644 --- a/src/drivers/px4fmu/fmu.cpp +++ b/src/drivers/px4fmu/fmu.cpp @@ -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);