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

Cleanup sensor detection. Less code required and a similar pattern is used for each type of sensor.

This commit is contained in:
Dominic Clifton 2015-02-19 16:15:14 +00:00
parent 77e5be5002
commit c45efac812
20 changed files with 70 additions and 78 deletions

View file

@ -17,6 +17,15 @@
#pragma once
typedef enum {
BARO_NONE = 0,
BARO_DEFAULT = 1,
BARO_BMP085 = 2,
BARO_MS5611 = 3
} baroSensor_e;
extern baroSensor_e baroHardware;
#define BARO_SAMPLE_COUNT_MAX 48
typedef struct barometerConfig_s {