X-Git-Url: http://git.joshuawise.com/s3load.git/blobdiff_plain/5ee943f9cb03c6e18160be40b69437a9c9b897c6..0b5a2b64044f292ddcb060c740fc9dd453c39013:/libnexys.c diff --git a/libnexys.c b/libnexys.c index 9fbf833..0234849 100644 --- a/libnexys.c +++ b/libnexys.c @@ -45,9 +45,9 @@ nexys2_t nexys2_init(void) { 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; }