[prev in list] [next in list] [prev in thread] [next in thread] 

List:       g15tools-commits
Subject:    [G15tools-commits] SF.net SVN: g15tools: [268] trunk/libg15/libg15.c
From:       mlampard () users ! sourceforge ! net
Date:       2007-11-25 3:28:10
Message-ID: E1Iw8AE-0004gG-17 () sc8-pr-svn3 ! sourceforge ! net
[Download RAW message or body]

Revision: 268
          http://g15tools.svn.sourceforge.net/g15tools/?rev=268&view=rev
Author:   mlampard
Date:     2007-11-24 19:28:09 -0800 (Sat, 24 Nov 2007)

Log Message:
-----------
Ensure retry on invalid packets for 5byte.

Modified Paths:
--------------
    trunk/libg15/libg15.c

Modified: trunk/libg15/libg15.c
===================================================================
--- trunk/libg15/libg15.c	2007-11-25 03:23:02 UTC (rev 267)
+++ trunk/libg15/libg15.c	2007-11-25 03:28:09 UTC (rev 268)
@@ -704,12 +704,14 @@
     pthread_mutex_unlock(&libusb_mutex);
 
     if(g15DeviceCapabilities() & G15_DEVICE_5BYTE_RETURN) { /* new 5byte protocol */
-      if (ret == 5 && (buffer[0] == 2)) {
+      if (ret == 5) {
        
         processKeyEvent5Byte(pressed_keys, buffer);
        
         return G15_NO_ERROR;
       }
+      if (buffer[0] == 1)
+         return G15_ERROR_TRY_AGAIN;
     } 
     else 
     {


This was sent by the SourceForge.net collaborative development platform, the world's \
largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
G15tools-commits mailing list
G15tools-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/g15tools-commits


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic