diff options
author | Pali Rohár <pali.rohar@gmail.com> | 2016-02-21 20:52:21 +0100 |
---|---|---|
committer | Pali Rohár <pali.rohar@gmail.com> | 2016-02-21 20:52:21 +0100 |
commit | bc7894b99dc4902b365b5f2e5bb258f471fe5582 (patch) | |
tree | 461524cfd4c20119dfbc9e120313974ebc97249e /src/usb-device.h | |
parent | abcf2562689a46386b45eaa34da44010054244ae (diff) | |
download | 0xFFFF-bc7894b99dc4902b365b5f2e5bb258f471fe5582.tar.bz2 |
all: Fix usb endpoints after conversion to libusb 1.0
Endpoint in nolo.c for libusb_bulk_transfer must be 0x02, not 0x01.
Diffstat (limited to 'src/usb-device.h')
-rw-r--r-- | src/usb-device.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/usb-device.h b/src/usb-device.h index 9b2bcc4..910a8c9 100644 --- a/src/usb-device.h +++ b/src/usb-device.h @@ -22,6 +22,10 @@ #include <libusb-1.0/libusb.h> +#define USB_READ_EP (LIBUSB_ENDPOINT_IN | 0x1) +#define USB_WRITE_EP (LIBUSB_ENDPOINT_OUT | 0x1) +#define USB_WRITE_DATA_EP (LIBUSB_ENDPOINT_OUT | 0x2) + #include "device.h" enum usb_flash_protocol { |