Commit e9ab3c9c35d0991fb7c7624cccd76baae4e02bcf

  • avatar
  • Peter Hutterer <peter.hutterer @wh…t.net> (Committer)
  • Fri Jan 01 03:13:47 CET 2010
  • avatar
  • Ping <pinglinux @gm…l.com> (Author)
  • Thu Dec 31 06:12:47 CET 2009
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>
  
888888 }
889889
890890 /* ignore events without information */
891 if (common->wcmEventCnt <= 2)
891 if ((common->wcmEventCnt <= 2) && common->wcmLastToolSerial)
892892 {
893893 DBG(3, common, "%s: dropping empty event"
894894 " for serial %d\n", local->name, common->wcmLastToolSerial);