From a88729b4dfa9bade486c596b5835a8d64f52d518 Mon Sep 17 00:00:00 2001 From: jflyper Date: Sun, 16 Jul 2017 03:38:26 +0900 Subject: [PATCH] Minor touch up on gyro.c --- src/main/sensors/gyro.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/sensors/gyro.c b/src/main/sensors/gyro.c index e43c0b9707..e7b64757fb 100644 --- a/src/main/sensors/gyro.c +++ b/src/main/sensors/gyro.c @@ -314,7 +314,7 @@ static bool gyroInitSensor(gyroSensor_t *gyroSensor) #ifdef USE_DUAL_GYRO // set cnsPin using GYRO_n_CS_PIN defined in target.h - gyroSensor->gyroDev.bus.spi.csnPin = gyroConfig()->gyro_to_use == 0 ? IOGetByTag(IO_TAG(GYRO_0_CS_PIN)) : IOGetByTag(IO_TAG(GYRO_1_CS_PIN)); + gyroSensor->gyroDev.bus.busdev_u.spi.csnPin = gyroConfig()->gyro_to_use == 0 ? IOGetByTag(IO_TAG(GYRO_0_CS_PIN)) : IOGetByTag(IO_TAG(GYRO_1_CS_PIN)); #else gyroSensor->gyroDev.bus.busdev_u.spi.csnPin = IO_NONE; // set cnsPin to IO_NONE so mpuDetect will set it according to value defined in target.h #endif // USE_DUAL_GYRO