summaryrefslogtreecommitdiffstats
path: root/adb/client/usb_osx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'adb/client/usb_osx.cpp')
-rw-r--r--adb/client/usb_osx.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/adb/client/usb_osx.cpp b/adb/client/usb_osx.cpp
index e380c8406..381ded4bb 100644
--- a/adb/client/usb_osx.cpp
+++ b/adb/client/usb_osx.cpp
@@ -556,6 +556,13 @@ int usb_close(usb_handle *handle)
return 0;
}
+void usb_reset(usb_handle* handle) {
+ if (!handle->dead) {
+ (*handle->interface)->USBDeviceReEnumerate(handle->interface, 0);
+ }
+ usb_kick(handle);
+}
+
static void usb_kick_locked(usb_handle *handle)
{
LOG(INFO) << "Kicking handle";