summaryrefslogtreecommitdiff
path: root/hidraw.c
diff options
context:
space:
mode:
authorPeter Wu <lekensteyn@gmail.com>2013-09-28 16:19:14 +0200
committerPeter Wu <lekensteyn@gmail.com>2013-09-28 16:19:14 +0200
commit8fbf5f92d2b846a99377f76cee75bdb9032eb31c (patch)
tree5463c46859888b8ec72e10bb25da1a4f100521d7 /hidraw.c
parentbcdc930b761a2433624af946ccbddea8d7171807 (diff)
downloadltunify-8fbf5f92d2b846a99377f76cee75bdb9032eb31c.tar.gz
ltunify: fix do_read failure when receiving unrelated messages
When a touchpad event occurs while the device is being queried (e.g. for features), then do_io (for do_read) would fail because the report was not of the correct type (0x20 vs 0x11 for example). To fix this, make do_read retry reads (within the allowed timeout). Previously the expected report type was hidden in the msg parameter, make this expected report type more explicit now in a new parameter.
Diffstat (limited to 'hidraw.c')
0 files changed, 0 insertions, 0 deletions