]> git.zerfleddert.de Git - hmcfgusb/commitdiff
revert null frame to zero length
authorMichael Gernoth <michael@gernoth.net>
Sun, 14 Jul 2013 11:35:46 +0000 (13:35 +0200)
committerMichael Gernoth <michael@gernoth.net>
Sun, 14 Jul 2013 11:35:46 +0000 (13:35 +0200)
hmcfgusb.c

index 0857a4b3634f5ac9dee153d051c8074a0b298a5c..6df2bcaa327ed19576ec6fb4667cece08ec568ed 100644 (file)
@@ -150,7 +150,7 @@ int hmcfgusb_send_null_frame(struct hmcfgusb_dev *usbdev, int silent)
 
        memset(out, 0, sizeof(out));
 
-       err = libusb_interrupt_transfer(usbdev->usb_devh, EP_OUT, out, sizeof(out), &cnt, USB_TIMEOUT);
+       err = libusb_interrupt_transfer(usbdev->usb_devh, EP_OUT, out, 0, &cnt, USB_TIMEOUT);
        if (err && (!silent)) {
                fprintf(stderr, "Can't send null frame: %s\n", usb_strerror(err));
                return 0;
Impressum, Datenschutz