diff options
author | Peter Wu <lekensteyn@gmail.com> | 2013-09-28 16:19:14 +0200 |
---|---|---|
committer | Peter Wu <lekensteyn@gmail.com> | 2013-09-28 16:19:14 +0200 |
commit | 8fbf5f92d2b846a99377f76cee75bdb9032eb31c (patch) | |
tree | 5463c46859888b8ec72e10bb25da1a4f100521d7 /shell | |
parent | bcdc930b761a2433624af946ccbddea8d7171807 (diff) | |
download | ltunify-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 'shell')
0 files changed, 0 insertions, 0 deletions