am7xxx: use hex notation for USB endpoints
authorAntonio Ospite <ospite@studenti.unina.it>
Thu, 10 May 2012 06:11:14 +0000 (08:11 +0200)
committerAntonio 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

index 8087f89..528c1b6 100644 (file)
@@ -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);