projects
/
libam7xxx.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
dbf547e
)
am7xxx: use hex notation for USB endpoints
author
Antonio Ospite <ospite@studenti.unina.it>
Thu, 10 May 2012 06:11:14 +0000
(08:11 +0200)
committer
Antonio Ospite <ospite@studenti.unina.it>
Thu, 10 May 2012 13:57:59 +0000
(15:57 +0200)
This is for consistency with other uses.
src/am7xxx.c
patch
|
blob
|
history
diff --git
a/src/am7xxx.c
b/src/am7xxx.c
index
8087f89
..
528c1b6
100644
(file)
--- a/
src/am7xxx.c
+++ b/
src/am7xxx.c
@@
-294,7
+294,7
@@
static int send_data(am7xxx_device *dev, uint8_t *buffer, unsigned int len)
trace_dump_buffer(dev->ctx, "sending -->", buffer, len);
- ret = libusb_bulk_transfer(dev->usb_device, 1, buffer, len, &transferred, 0);
+ ret = libusb_bulk_transfer(dev->usb_device,
0x
1, buffer, len, &transferred, 0);
if (ret != 0 || (unsigned int)transferred != len) {
error(dev->ctx, "ret: %d\ttransferred: %d (expected %u)\n",
ret, transferred, len);