From c5d1ab64104dc7ecf2743c566079485c6fa6582e Mon Sep 17 00:00:00 2001 From: Adriana Reus Date: Wed, 15 Oct 2014 19:42:45 +0300 Subject: [PATCH] Limit max frequency to 400Hz It seems that having the accel and the gyro work at very high frequencies (> 500) at the same time does not go very well with the overall cpu loading and can affect other threads, for example the magnetometer events don't come as fast as cts would like it given these conditions. Tracked-On: https://jira01.devtools.intel.com/browse/GMINL-2227 Change-Id: I69480b393794afb072654451a468c30bb821466a Signed-off-by: Adriana Reus --- common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.h b/common.h index 59b5748..9df00ea 100644 --- a/common.h +++ b/common.h @@ -27,7 +27,7 @@ #define PROP_BASE "ro.iio.%s.%s" /* Note: PROPERTY_KEY_MAX is small */ -#define MAX_EVENTS 800 /* 800 hz */ +#define MAX_EVENTS 400 /* 400 Hz */ #define MAX_TYPE_SPEC_LEN 32 /* Channel type spec len; ex: "le:u10/16>>0" */ #define MAX_SENSOR_REPORT_SIZE 32 /* Sensor report buffer size */ -- 2.11.0