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:
parent
a12cf4ae59
commit
6013d9dc6a
4 changed files with 23 additions and 17 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue