forked from len0rd/rockbox
Limit usb_serial packets to 32 bytes. It's unclear why this is needed, but usb serial packets larger than 96 bytes seem to never be sent.
Thanks to Amaury Pouly for investigating this git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22285 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e783d0c82a
commit
f10a3c7bed
1 changed files with 3 additions and 0 deletions
|
@ -158,6 +158,9 @@ void usb_serial_disconnect(void)
|
|||
static void sendout(void)
|
||||
{
|
||||
buffer_transitlength = MIN(buffer_length,BUFFER_SIZE-buffer_start);
|
||||
/* For unknown reasons packets larger than 96 bytes are not sent. We play
|
||||
* safe and limit to 32. TODO: find the real bug */
|
||||
buffer_transitlength = MIN(buffer_transitlength,32);
|
||||
if(buffer_transitlength > 0)
|
||||
{
|
||||
buffer_length -= buffer_transitlength;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue