fixed two more CONFIG_HARDWARE #ifdef bugs

This commit is contained in:
Andrew Tridgell 2011-12-13 17:05:48 +11:00
parent 99395b919c
commit 4e4a4a685c
2 changed files with 2 additions and 2 deletions

View File

@ -161,7 +161,7 @@ static AP_Int8 *flight_modes = &g.flight_mode1;
#else #else
#if CONFIG_BARO == AP_BARO_BMP085 #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); AP_Baro_BMP085 barometer(true);
# else # else
AP_Baro_BMP085 barometer(false); AP_Baro_BMP085 barometer(false);

View File

@ -139,7 +139,7 @@ AP_Compass_HIL compass;
#else #else
#if CONFIG_BARO == AP_BARO_BMP085 #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); static AP_Baro_BMP085 barometer(true);
# else # else
static AP_Baro_BMP085 barometer(false); static AP_Baro_BMP085 barometer(false);