mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-05 17:08:52 +08:00
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:
committed by
Lorenz Meier
parent
e4d71ec682
commit
f0b770a3ce
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user