Skip to content
Snippets Groups Projects
Commit 5883ac7d authored by Peter Hutterer's avatar Peter Hutterer
Browse files

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: default avatarPeter Hutterer <peter.hutterer@who-t.net>
parent d786b55d
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment