diff options
author | Pete Batard <pbatard@gmail.com> | 2010-01-14 01:25:18 +0000 |
---|---|---|
committer | Pete Batard <pbatard@gmail.com> | 2010-01-14 01:25:18 +0000 |
commit | 0cf1a367fabb80de559b7bb3e99ee541e59510ae (patch) | |
tree | 958a79df86564e0f0c485465fb51d2722a72d7d4 /examples | |
parent | 055b0136bf9a59abba662ea1313c516a9b847772 (diff) | |
download | libusb-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.c | 3 |
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; } |