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:
parent
77e5be5002
commit
c45efac812
20 changed files with 70 additions and 78 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue