return NULL;
}
- if (usb_clear_halt(udev, 0x01) < 0) /* Sometimes the board locks up when you close it, so send this. */
+ if (usb_reset(udev) < 0) /* Sometimes the board locks up when you close it, so send this. */
{
- fprintf(stderr, "nexys2_init: failed to clear halt on interface 0x01\n");
+ fprintf(stderr, "nexys2_init: failed to reset the USB (%s)\n", usb_strerror());
return NULL;
}