[close] Attachments you submit will be routed for moderation. If you have an account, please log in first.

Ticket #6: 0003-Make-flag-LIBUSB_TRANSFER_SHORT_NOT_OK-set-USBFS_URB.patch

File 0003-Make-flag-LIBUSB_TRANSFER_SHORT_NOT_OK-set-USBFS_URB.patch, 826 bytes (added by nikias, 5 years ago)
  • libusb/os/linux_usbfs.c

    From 42cdb41546ed83e816159d208b81e687e97410af Mon Sep 17 00:00:00 2001
    From: Nikias Bassen <nikias@gmx.li>
    Date: Fri, 28 Aug 2009 00:13:36 +0200
    Subject: [PATCH] Make flag LIBUSB_TRANSFER_SHORT_NOT_OK set USBFS_URB_SHORT_NOT_OK.
    
    ---
     libusb/os/linux_usbfs.c |    2 ++
     1 files changed, 2 insertions(+), 0 deletions(-)
    
    diff --git a/libusb/os/linux_usbfs.c b/libusb/os/linux_usbfs.c
    index 1f6c989..81a9498 100644
    a b static int submit_bulk_transfer(struct usbi_transfer *itransfer, 
    13071307                else 
    13081308                        urb->buffer_length = MAX_BULK_BUFFER_LENGTH; 
    13091309 
     1310                if (transfer->flags & LIBUSB_TRANSFER_SHORT_NOT_OK) 
     1311                        urb->flags |= USBFS_URB_SHORT_NOT_OK; 
    13101312                if (transfer->flags & LIBUSB_TRANSFER_ZERO_PACKET) 
    13111313                        urb->flags |= USBFS_URB_ZERO_PACKET; 
    13121314