From: Antonio Ospite Date: Thu, 10 May 2012 06:11:14 +0000 (+0200) Subject: am7xxx: use hex notation for USB endpoints X-Git-Tag: v0.1.3~37^2~9 X-Git-Url: https://git.ao2.it/libam7xxx.git/commitdiff_plain/c9f69db2457e7e71b511192b1fb67bcfe19d6160?ds=inline;hp=dbf547ef3bf598f7089a8360355a74859549b418 am7xxx: use hex notation for USB endpoints This is for consistency with other uses. --- diff --git a/src/am7xxx.c b/src/am7xxx.c index 8087f89..528c1b6 100644 --- 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, 0x1, buffer, len, &transferred, 0); if (ret != 0 || (unsigned int)transferred != len) { error(dev->ctx, "ret: %d\ttransferred: %d (expected %u)\n", ret, transferred, len);