mirror of https://github.com/OpenIPC/firmware.git
17 lines
513 B
Diff
17 lines
513 B
Diff
diff -drupN a/drivers/input/input.c b/drivers/input/input.c
|
|
--- a/drivers/input/input.c 2018-08-06 17:23:04.000000000 +0300
|
|
+++ b/drivers/input/input.c 2022-06-12 05:28:14.000000000 +0300
|
|
@@ -245,9 +245,11 @@ static int input_handle_abs_event(struct
|
|
if (pold) {
|
|
*pval = input_defuzz_abs_event(*pval, *pold,
|
|
dev->absinfo[code].fuzz);
|
|
+ /*
|
|
+ gsensor data may be keep same in several samples, so report every sample
|
|
if (*pold == *pval)
|
|
return INPUT_IGNORE_EVENT;
|
|
-
|
|
+ */
|
|
*pold = *pval;
|
|
}
|
|
|