diff options
Diffstat (limited to '6515/libsensors_iio/sensors.h')
-rwxr-xr-x | 6515/libsensors_iio/sensors.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/6515/libsensors_iio/sensors.h b/6515/libsensors_iio/sensors.h index b7f5192..17774ff 100755 --- a/6515/libsensors_iio/sensors.h +++ b/6515/libsensors_iio/sensors.h @@ -62,7 +62,9 @@ enum { Accelerometer, MagneticField, RawMagneticField, +#ifdef ENABLE_PRESSURE Pressure, +#endif Orientation, RotationVector, GameRotationVector, @@ -75,6 +77,12 @@ enum { NumSensors }; +#ifdef ENABLE_PRESSURE +#define LAST_HW_SENSOR Pressure +#else +#define LAST_HW_SENSOR RawMagneticField +#endif + /* Physical parameters of the sensors supported by Invensense MPL */ #define SENSORS_GYROSCOPE_HANDLE (ID_GY) #define SENSORS_RAW_GYROSCOPE_HANDLE (ID_RG) |