mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 06:15:16 +03:00
Fix OLIMEXINO build (no-baro)
This commit is contained in:
parent
fe89d40fa0
commit
7e76fd6995
2 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue