OSDN Git Service

IRDA-3621: Fix a bug where accel and gyro get stuck at 200 Hz
authorPatrick Porlan <patrick.porlan@intel.com>
Wed, 11 Feb 2015 09:40:36 +0000 (10:40 +0100)
committerGerrit Code Review <gerrit2@irsgerrit001.ir.intel.com>
Wed, 11 Feb 2015 10:27:26 +0000 (10:27 +0000)
commita80f4c9fdecfa1c44ae12dfd2f7abf19e974ec57
treebf22c60a620302442eb10937f43f37aa632ec079
parent5a6ab39b907dae1e42022d1042e5b510bb0122b2
IRDA-3621: Fix a bug where accel and gyro get stuck at 200 Hz

This is happening on Malata because the MPU-6050 driver exposes
both the accel and gyro on the same iio device, with a single
frequency knob for both. With the current code the accel would
be bumped up to 200 Hz if the gyro was configured at 200 Hz, but
would not go back when a lower sampling rate was selected because
the accel would appear to require 200 Hz.

Change-Id: Ied0c1c94c278be180a22fd537f8e82f0e8f7adbd
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
common.h
control.c