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

Decouple ms5611 baro driver from bmp085 driver.

This commit is contained in:
Dominic Clifton 2014-09-26 02:09:40 +01:00
parent a12cf4ae59
commit 6013d9dc6a
4 changed files with 23 additions and 17 deletions

View file

@ -390,6 +390,9 @@ retry:
static void detectBaro()
{
#ifdef BARO
#ifdef USE_BARO_BMP085
bmp085Disable();
#endif
#ifdef USE_BARO_MS5611
// Detect what pressure sensors are available. baro->update() is set to sensor-specific update function
if (ms5611Detect(&baro)) {