1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-25 17:25:20 +03:00

Enforce USE_BARO and USE_MAG

This commit is contained in:
jflyper 2019-04-28 21:55:10 +09:00
parent f00ff09a00
commit 625959aa2f
5 changed files with 24 additions and 5 deletions

View file

@ -24,6 +24,8 @@
#include "platform.h"
#ifdef USE_BARO
#include "common/maths.h"
#include "pg/pg.h"
@ -117,8 +119,6 @@ void pgResetFn_barometerConfig(barometerConfig_t *barometerConfig)
#endif
}
#ifdef USE_BARO
static uint16_t calibratingB = 0; // baro calibration = get new ground pressure value
static int32_t baroPressure = 0;
static int32_t baroTemperature = 0;