Fix OLIMEXINO build (no-baro)

This commit is contained in:
Dominic Clifton 2014-04-22 02:07:11 +01:00
parent fe89d40fa0
commit 7e76fd6995
2 changed files with 3 additions and 1 deletions

View File

@ -196,7 +196,9 @@ int main(void)
ACC_SetCalibrationCycles(CALIBRATING_ACC_CYCLES);
}
GYRO_SetCalibrationCycles(CALIBRATING_GYRO_CYCLES);
#ifdef BARO
Baro_SetCalibrationCycles(CALIBRATING_BARO_CYCLES);
#endif
f.SMALL_ANGLE = 1;

View File

@ -4,9 +4,9 @@
#include "drivers/barometer_common.h"
baro_t baro; // barometer access functions
uint16_t calibratingB = 0; // baro calibration = get new ground pressure value
#ifdef BARO
uint16_t calibratingB = 0; // baro calibration = get new ground pressure value
static int32_t baroGroundAltitude = 0;
static int32_t baroGroundPressure = 0;