summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/xusb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/xusb.c b/examples/xusb.c
index f641ff8..d2124a0 100644
--- a/examples/xusb.c
+++ b/examples/xusb.c
@@ -158,6 +158,9 @@ int test_mass_storage(libusb_device_handle *handle)
printf("received %d bytes\n", size);
printf("Tag = %08X\n", csw.dCSWTag);
printf("Status = %02X\n", csw.bCSWStatus);
+
+ printf("Resetting device...\n");
+ CALL_CHECK(libusb_reset_device(handle));
return 0;
}