OSDN Git Service

IRDA-1184: Fix event duplication condition
[android-x86/hardware-intel-libsensors.git] / 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;