diff options
author | Ben Fennema <fennema@google.com> | 2017-06-16 13:38:03 -0700 |
---|---|---|
committer | Ben Fennema <fennema@google.com> | 2017-06-16 21:11:02 +0000 |
commit | b3f7e05044eb5237f500c082e7db102ce0bb4475 (patch) | |
tree | 09c78d56760442add0bf93a8af41d3649ed6ecbc | |
parent | 5dbb09f6a3a74755cc8dee663ec19dcec913ac47 (diff) | |
download | contexthub-b3f7e05044eb5237f500c082e7db102ce0bb4475.tar.gz |
sensorhal: fix uncal accel
Fix merge issue due to lack of uncal accel in nyc
Bug: 62640084
Test: pass SensorTest#testBatchAndFlush
Change-Id: I2f264a9c5ee7aaa55f3de4457059443dd7064771
Signed-off-by: Ben Fennema <fennema@google.com>
-rw-r--r-- | sensorhal/hubconnection.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sensorhal/hubconnection.cpp b/sensorhal/hubconnection.cpp index 003f59f5..bfae55dc 100644 --- a/sensorhal/hubconnection.cpp +++ b/sensorhal/hubconnection.cpp @@ -170,6 +170,7 @@ HubConnection::HubConnection() mSensorState[COMMS_SENSOR_ACCEL].sensorType = SENS_TYPE_ACCEL; mSensorState[COMMS_SENSOR_ACCEL].alt = COMMS_SENSOR_ACCEL_UNCALIBRATED; mSensorState[COMMS_SENSOR_ACCEL_UNCALIBRATED].sensorType = SENS_TYPE_ACCEL; + mSensorState[COMMS_SENSOR_ACCEL_UNCALIBRATED].primary = SENS_TYPE_ACCEL; mSensorState[COMMS_SENSOR_ACCEL_UNCALIBRATED].alt = COMMS_SENSOR_ACCEL; mSensorState[COMMS_SENSOR_GYRO].sensorType = SENS_TYPE_GYRO; mSensorState[COMMS_SENSOR_GYRO].alt = COMMS_SENSOR_GYRO_UNCALIBRATED; |