From 1d93e80786453d74c5da7eab3e4bf3124e13bbb0 Mon Sep 17 00:00:00 2001 From: Billy Date: Thu, 9 May 2013 17:15:31 +0800 Subject: [PATCH] Sensors: Change MinDelay for matching non-streaming sensors Fix: The HAL code set Mindelay to non-zero, but sensors don't work as streaming. Change MinDelay to zero. Issue: AXIA-1868 Change-Id: Ia10111191d50b4914f422b84d5d36135b4713961 Signed-off-by: Xiaobing Feng Reviewed-on: https://otc-android.intel.com/gerrit/19193 Reviewed-by: Matthew K Gumbel Tested-by: Matthew K Gumbel --- common/libsensors/HidSensor_Accel3D.cpp | 2 +- common/libsensors/HidSensor_Compass3D.cpp | 2 +- common/libsensors/HidSensor_Gyro3D.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/libsensors/HidSensor_Accel3D.cpp b/common/libsensors/HidSensor_Accel3D.cpp index 62a20f4..4de4d47 100644 --- a/common/libsensors/HidSensor_Accel3D.cpp +++ b/common/libsensors/HidSensor_Accel3D.cpp @@ -38,7 +38,7 @@ struct accel_3d_sample{ const struct sensor_t AccelSensor::sSensorInfo_accel3D = { "HID_SENSOR Accelerometer 3D", "Intel", 1, SENSORS_ACCELERATION_HANDLE, - SENSOR_TYPE_ACCELEROMETER, RANGE_A, RESOLUTION_A, 0.23f, 16666, {} + SENSOR_TYPE_ACCELEROMETER, RANGE_A, RESOLUTION_A, 0.23f, 0, {} }; const long HID_USAGE_SENSOR_UNITS_G = 0x1A; diff --git a/common/libsensors/HidSensor_Compass3D.cpp b/common/libsensors/HidSensor_Compass3D.cpp index a7b7b86..0628950 100644 --- a/common/libsensors/HidSensor_Compass3D.cpp +++ b/common/libsensors/HidSensor_Compass3D.cpp @@ -38,7 +38,7 @@ struct compass_3d_sample{ const struct sensor_t CompassSensor::sSensorInfo_compass3D = { "HID_SENSOR Compass 3D", "Intel", 1, SENSORS_MAGNETIC_FIELD_HANDLE, - SENSOR_TYPE_MAGNETIC_FIELD, RANGE_M, RESOLUTION_M, 0.1f, 66667, {} + SENSOR_TYPE_MAGNETIC_FIELD, RANGE_M, RESOLUTION_M, 0.1f, 0, {} }; const int retry_cnt = 10; diff --git a/common/libsensors/HidSensor_Gyro3D.cpp b/common/libsensors/HidSensor_Gyro3D.cpp index 17d6f93..4708553 100644 --- a/common/libsensors/HidSensor_Gyro3D.cpp +++ b/common/libsensors/HidSensor_Gyro3D.cpp @@ -38,7 +38,7 @@ struct gyro_3d_sample{ const struct sensor_t GyroSensor::sSensorInfo_gyro3D = { "HID_SENSOR Gyro 3D", "Intel", 1, SENSORS_GYROSCOPE_HANDLE, - SENSOR_TYPE_GYROSCOPE, RANGE_GYRO, RESOLUTION_GYRO, 6.10f, 16666, {} + SENSOR_TYPE_GYROSCOPE, RANGE_GYRO, RESOLUTION_GYRO, 6.10f, 0, {} }; const int HID_USAGE_SENSOR_UNITS_DEGREES_PER_SECOND = 0x15; const int HID_USAGE_SENSOR_UNITS_RADIANS_PER_SECOND = 0xF012; -- 2.11.0