diff --git a/sw/airborne/main_ap.c b/sw/airborne/main_ap.c index 1c2e4d6c91..6fdd02a9b4 100644 --- a/sw/airborne/main_ap.c +++ b/sw/airborne/main_ap.c @@ -79,7 +79,7 @@ #include "srf08.h" #endif -#if defined USE_I2C0 || USE_I2C1 || USE_I2C2 +#if defined USE_I2C0 || USE_I2C1 #include "i2c.h" #endif @@ -741,10 +741,6 @@ void init_ap( void ) { i2c1_init(); #endif -#ifdef USE_I2C2 - i2c2_init(); -#endif - #ifdef USE_AIRSPEED_ETS airspeed_ets_init(); #endif