summaryrefslogtreecommitdiffstats
path: root/libsensors
diff options
context:
space:
mode:
authorChristian Balster <christian.balster@gmail.com>2015-05-20 17:16:29 +0200
committerforkbomb <keepcalm444@gmail.com>2015-11-25 08:34:10 +1100
commitb69dd8752382b8dfd7529440f5fd5e14e00d6987 (patch)
tree32ebad8aff6a25f79929ad7ff278ccf652710062 /libsensors
parent2104318f1e424bedb2f820931171b7df036b55c6 (diff)
downloaddevice_samsung_i9300-b69dd8752382b8dfd7529440f5fd5e14e00d6987.zip
device_samsung_i9300-b69dd8752382b8dfd7529440f5fd5e14e00d6987.tar.gz
device_samsung_i9300-b69dd8752382b8dfd7529440f5fd5e14e00d6987.tar.bz2
i9300: libsensors: report at least bogus accuracy for gyro
Change-Id: I81ff71c8ae6bf25c1aabac4a6d8d6fcf64bd2e0b
Diffstat (limited to 'libsensors')
-rw-r--r--libsensors/lsm330dlc_gyroscope.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libsensors/lsm330dlc_gyroscope.c b/libsensors/lsm330dlc_gyroscope.c
index 6a7f98d..9c36790 100644
--- a/libsensors/lsm330dlc_gyroscope.c
+++ b/libsensors/lsm330dlc_gyroscope.c
@@ -206,6 +206,8 @@ int lsm330dlc_gyroscope_get_data(struct smdk4x12_sensors_handlers *handlers,
event->gyro.y = data->gyro.y;
event->gyro.z = data->gyro.z;
+ event->gyro.status = SENSOR_STATUS_ACCURACY_MEDIUM;
+
do {
rc = read(input_fd, &input_event, sizeof(input_event));
if (rc < (int) sizeof(input_event))