From cc8c12d31cbaea377b573fa317251721406e0e01 Mon Sep 17 00:00:00 2001 From: atomiclama Date: Thu, 16 Feb 2017 16:23:44 +0000 Subject: [PATCH] Fix #2364 USE_I2C was still defined even though no I2C devices BARO MAG were defined. This led to the I2C being active but not being handled. So any data on the I2C line caused it to error and not be handled. Tested with IA6B RX hooked upto the flexport of the CC3D with TX on before the FC boots. --- src/main/target/CC3D/target.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/target/CC3D/target.h b/src/main/target/CC3D/target.h index 9871d0cf46..e58f177690 100644 --- a/src/main/target/CC3D/target.h +++ b/src/main/target/CC3D/target.h @@ -33,9 +33,6 @@ #define USE_SPI_DEVICE_1 #define USE_SPI_DEVICE_2 -#define USE_I2C -#define I2C_DEVICE (I2CDEV_2) // Flex port - SCL/PB10, SDA/PB11 - #define MPU6000_CS_GPIO GPIOA #define MPU6000_CS_PIN PA4 #define MPU6000_SPI_INSTANCE SPI1 @@ -58,6 +55,9 @@ // MPU6000 interrupts #define USE_MPU_DATA_READY_SIGNAL +//#define USE_I2C +//#define I2C_DEVICE (I2CDEV_2) // Flex port - SCL/PB10, SDA/PB11 + // External I2C BARO //#define BARO //#define USE_BARO_MS5611