Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e02c066a authored by Brian Duddie's avatar Brian Duddie
Browse files

Add missing union members to ASensorEvent

Named fields for accessing data from the gyroscope and uncalibrated
accelerometer sensor types were mistakenly left out of the union.
Although this data was accessible directly before, these fields make
developers' lives easier.

Fixes: 182903112
Test: compile only
Change-Id: If8189658030fab96b54b79dd318935b9116b5e58
parent 2bbc3a88
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -448,12 +448,14 @@ typedef struct ASensorEvent {
            float           data[16];
            ASensorVector   vector;
            ASensorVector   acceleration;
            ASensorVector   gyro;
            ASensorVector   magnetic;
            float           temperature;
            float           distance;
            float           light;
            float           pressure;
            float           relative_humidity;
            AUncalibratedEvent uncalibrated_acceleration;
            AUncalibratedEvent uncalibrated_gyro;
            AUncalibratedEvent uncalibrated_magnetic;
            AMetaDataEvent meta_data;