mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-21 23:35:34 +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
|
@ -18,7 +18,7 @@
|
|||
#pragma once
|
||||
|
||||
// Type of accelerometer used/detected
|
||||
typedef enum AccelSensors {
|
||||
typedef enum {
|
||||
ACC_DEFAULT = 0,
|
||||
ACC_ADXL345 = 1,
|
||||
ACC_MPU6050 = 2,
|
||||
|
@ -29,7 +29,7 @@ typedef enum AccelSensors {
|
|||
ACC_SPI_MPU6500 = 7,
|
||||
ACC_FAKE = 8,
|
||||
ACC_NONE = 9
|
||||
} accelSensor_e;
|
||||
} accelerationSensor_e;
|
||||
|
||||
extern uint8_t accHardware;
|
||||
extern sensor_align_e accAlign;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue