gnokii-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-18


From: Daniele Forsi
Subject: [SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-186-g66da724
Date: Fri, 18 Feb 2011 17:47:29 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "libgnokii and core programs".

The branch, master has been updated
       via  66da724e8cf001894bb118d81bb46f569984bd36 (commit)
      from  6c55258f2f9dcdeb468055937c79e2137c36ae5c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/gnokii.git/commit/?id=66da724e8cf001894bb118d81bb46f569984bd36


commit 66da724e8cf001894bb118d81bb46f569984bd36
Author: Pawel Kot <address@hidden>
Date:   Fri Feb 18 18:40:40 2011 +0100

    Lenght of buffer passed to USB must be a multiple of 64
    
    See http://libusb.sourceforge.net/api-1.0/packetoverflow.html
    Now that the final buffer is dinamically resized the hack of
    adding 16 for linux phonet compatibility is no more needed.

diff --git a/common/links/fbus-phonet.c b/common/links/fbus-phonet.c
index 9c7a1fa..80b07ec 100644
--- a/common/links/fbus-phonet.c
+++ b/common/links/fbus-phonet.c
@@ -227,7 +227,11 @@ static void phonet_rx_statemachine(unsigned char rx_byte, 
struct gn_statemachine
 static gn_error phonet_loop(struct timeval *timeout, struct gn_statemachine 
*state)
 {
        gn_error        error = GN_ERR_INTERNALERROR;
-       unsigned char   buffer[BUFFER_SIZE + 16];
+       /*
+         IMPORTANT: size of this buffer must be a multiple of 64 for USB 
compatibility
+         See http://libusb.sourceforge.net/api-1.0/packetoverflow.html
+       */
+       unsigned char   buffer[BUFFER_SIZE];
        int             count, res;
 
        res = device_select(timeout, state);

-----------------------------------------------------------------------

Summary of changes:
 common/links/fbus-phonet.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
libgnokii and core programs



reply via email to

[Prev in Thread] Current Thread [Next in Thread]