path: root/tools
diff options
authorPeter Hutterer <>2018-03-12 14:32:39 +1000
committerPeter Hutterer <>2018-03-13 10:04:02 +1000
commit5883ac7d98614e735e44767f3fef0e2ca03ad1ee (patch)
treed5775744e88b5bf9de60ee95d8ac5c426d70fe98 /tools
parentd786b55daa99c6f891da05ec91617eccdc843333 (diff)
touchpad: make sure we compare only the last 3 events for wobble
We're left-shifting the bits but weren't comparing against the l_r_l mask itself. So if we get a sequence of [1, 1, 0, 1] we didn't detect a wobble because 0b1101 != 0b101 (what we're looking for). Fix this by turning it into a right shift, that way the bits fall off the mask automatic al ly y y y y . . _._v.___ Signed-off-by: Peter Hutterer <>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions