summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeng Xu <pengxu@google.com>2017-03-30 20:47:19 -0700
committerPeng Xu <pengxu@google.com>2017-03-31 18:05:21 +0000
commit7cd1fba6995d161e73d13b44a0e5b3665ea712e5 (patch)
tree3297ad16b9b02691c6bb4737f5b27fc283f0e5c9
parent471d5030e80471dcd25a453ead49a7c8554f27da (diff)
downloadcontexthub-7cd1fba6995d161e73d13b44a0e5b3665ea712e5.tar.gz
Fix a bug that cause all zero gyro cal at restore
Test: reboot system monitor logcat Change-Id: I6d80eec8ba321e2132efdc2bd4adf075f62ff56d
-rw-r--r--sensorhal/hubconnection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sensorhal/hubconnection.cpp b/sensorhal/hubconnection.cpp
index 29974795..67c14333 100644
--- a/sensorhal/hubconnection.cpp
+++ b/sensorhal/hubconnection.cpp
@@ -1307,7 +1307,7 @@ void HubConnection::sendCalibrationOffsets()
} else {
ALOGI("Use new configuration format");
std::vector<int32_t> hardwareGyroBias = getInt32Setting(settings, GYRO_BIAS_TAG);
- std::vector<float> softwareGyroBias = getFloatSetting(settings, GYRO_SW_BIAS_TAG);
+ std::vector<float> softwareGyroBias = getFloatSetting(saved_settings, GYRO_SW_BIAS_TAG);
if (hardwareGyroBias.size() == 3 || softwareGyroBias.size() == 3) {
struct {
AppToSensorHalDataPayload header;