diff --git a/ArduCopter/ArduCopter.pde b/ArduCopter/ArduCopter.pde index fcc382913b..9d7d4f88a7 100644 --- a/ArduCopter/ArduCopter.pde +++ b/ArduCopter/ArduCopter.pde @@ -161,7 +161,7 @@ static AP_Int8 *flight_modes = &g.flight_mode1; #else #if CONFIG_BARO == AP_BARO_BMP085 -# if CONFIG_APM_HARDWARE == CONFIG_HARDWARE_APM2 +# if CONFIG_APM_HARDWARE == APM_HARDWARE_APM2 AP_Baro_BMP085 barometer(true); # else AP_Baro_BMP085 barometer(false); diff --git a/ArduPlane/ArduPlane.pde b/ArduPlane/ArduPlane.pde index b262016eb6..800e536001 100644 --- a/ArduPlane/ArduPlane.pde +++ b/ArduPlane/ArduPlane.pde @@ -139,7 +139,7 @@ AP_Compass_HIL compass; #else #if CONFIG_BARO == AP_BARO_BMP085 -# if CONFIG_APM_HARDWARE == CONFIG_HARDWARE_APM2 +# if CONFIG_APM_HARDWARE == APM_HARDWARE_APM2 static AP_Baro_BMP085 barometer(true); # else static AP_Baro_BMP085 barometer(false);