summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorPete Batard <pbatard@gmail.com>2010-01-14 01:25:18 +0000
committerPete Batard <pbatard@gmail.com>2010-01-14 01:25:18 +0000
commit0cf1a367fabb80de559b7bb3e99ee541e59510ae (patch)
tree958a79df86564e0f0c485465fb51d2722a72d7d4 /examples
parent055b0136bf9a59abba662ea1313c516a9b847772 (diff)
downloadlibusb-0cf1a367fabb80de559b7bb3e99ee541e59510ae.tar.gz
svn r40:
- feature complete! - added transfer cancellation - added device reset - additional code cleanup
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;
}