OSDN Git Service

IRDA-1184: Fix event duplication condition
authorPatrick Porlan <patrick.porlan@intel.com>
Mon, 29 Sep 2014 15:59:12 +0000 (17:59 +0200)
committerAdriana Reus <adriana.reus@intel.com>
Wed, 1 Oct 2014 11:22:08 +0000 (14:22 +0300)
Now that we can dynamically switch between continous and motion
triggers, checking for the terse flag is not necessary, and is
confusing.

Issue: IRDA-1184

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

index db8d324..d34747e 100644 (file)
--- a/control.c
+++ b/control.c
@@ -911,9 +911,8 @@ static void synthetize_duplicate_samples (void)
                if (!sensor_info[s].enable_count)
                        continue;
 
-               /* If the sensor can generate duplicates, leave it alone */
-               if (!(sensor_info[s].quirks & QUIRK_TERSE_DRIVER) &&
-                       sensor_info[s].selected_trigger !=
+               /* If the sensor is continuously firing, leave it alone */
+               if (    sensor_info[s].selected_trigger !=
                        sensor_info[s].motion_trigger_name)
                        continue;