diff options
author | Ping <pinglinux@gmail.com> | 2009-12-30 21:12:47 -0800 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2010-01-01 12:13:47 +1000 |
commit | e9ab3c9c35d0991fb7c7624cccd76baae4e02bcf (patch) | |
tree | dd448f99b8b90004224ad27c6051a045fd173c2b | |
parent | 1583ee5a9fd9486d540ecf639dda53d5e2e7502e (diff) | |
download | xf86-input-wacom-e9ab3c9c35d0991fb7c7624cccd76baae4e02bcf.tar.gz |
Restore valid small data packets
Protocl 4 devices may send small, such as 2 or less,
valid events in one data packet
Signed-off-by: Ping Cheng <pinglinux@gmail.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | src/wcmUSB.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wcmUSB.c b/src/wcmUSB.c index 7d72473..954af06 100644 --- a/src/wcmUSB.c +++ b/src/wcmUSB.c @@ -888,7 +888,7 @@ static void usbParseEvent(LocalDevicePtr local, } /* ignore events without information */ - if (common->wcmEventCnt <= 2) + if ((common->wcmEventCnt <= 2) && common->wcmLastToolSerial) { DBG(3, common, "%s: dropping empty event" " for serial %d\n", local->name, common->wcmLastToolSerial); |