Skip to content

Commit

Permalink
Added direct report flags for uncal type sensors
Browse files Browse the repository at this point in the history
Bug: 34356079
Test: all newly added SensorDirectReportTest test cases passed.
Change-Id: I07e8e551040131219f9af9d2fb425f0d3ea68bd4
  • Loading branch information
Peng Xu committed Aug 21, 2017
1 parent e05e983 commit 6273362
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sensorhal/sensorlist.cpp
Expand Up @@ -192,7 +192,7 @@ extern const sensor_t kSensorList[] = {
SENSOR_STRING_TYPE_GYROSCOPE_UNCALIBRATED,
"", // requiredPermission
(long)(1.0E6f / kMinSampleRateHzGyro), // maxDelay
SENSOR_FLAG_CONTINUOUS_MODE,
SENSOR_FLAG_CONTINUOUS_MODE | kDirectReportFlagGyro,
{ NULL, NULL }
},
{
Expand Down Expand Up @@ -228,7 +228,7 @@ extern const sensor_t kSensorList[] = {
SENSOR_STRING_TYPE_MAGNETIC_FIELD_UNCALIBRATED,
"", // requiredPermission
(long)(1.0E6f / kMinSampleRateHzMag), // maxDelay
SENSOR_FLAG_CONTINUOUS_MODE,
SENSOR_FLAG_CONTINUOUS_MODE | kDirectReportFlagMag,
{ NULL, NULL }
},
{
Expand Down Expand Up @@ -570,7 +570,7 @@ extern const sensor_t kSensorList[] = {
SENSOR_STRING_TYPE_ACCELEROMETER_UNCALIBRATED,
"", // requiredPermission
(long)(1.0E6f / kMinSampleRateHzAccel), // maxDelay
SENSOR_FLAG_CONTINUOUS_MODE,
SENSOR_FLAG_CONTINUOUS_MODE | kDirectReportFlagAccel,
{ NULL, NULL }
},
};
Expand Down

0 comments on commit 6273362

Please sign in to comment.