[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, 4 years ago) |
|
|
-
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, |
| 1307 | 1307 | else |
| 1308 | 1308 | urb->buffer_length = MAX_BULK_BUFFER_LENGTH; |
| 1309 | 1309 | |
| | 1310 | if (transfer->flags & LIBUSB_TRANSFER_SHORT_NOT_OK) |
| | 1311 | urb->flags |= USBFS_URB_SHORT_NOT_OK; |
| 1310 | 1312 | if (transfer->flags & LIBUSB_TRANSFER_ZERO_PACKET) |
| 1311 | 1313 | urb->flags |= USBFS_URB_ZERO_PACKET; |
| 1312 | 1314 | |
Download in other formats: