adb: update call to register_usb_transport in Mac and Windows builds.
Signed-off-by: Mike Lockwood <lockwood@android.com>
This commit is contained in:
parent
0927bf9690
commit
5c93dba771
|
@ -256,7 +256,7 @@ AndroidInterfaceAdded(void *refCon, io_iterator_t iterator)
|
|||
}
|
||||
|
||||
DBG("AndroidDeviceAdded calling register_usb_transport\n");
|
||||
register_usb_transport(handle, (serial[0] ? serial : NULL));
|
||||
register_usb_transport(handle, (serial[0] ? serial : NULL), 1);
|
||||
|
||||
// Register for an interest notification of this device being removed.
|
||||
// Pass the reference to our private data as the refCon for the
|
||||
|
|
|
@ -488,7 +488,7 @@ void find_devices() {
|
|||
true)) {
|
||||
// Lets make sure that we don't duplicate this device
|
||||
if (register_new_device(handle)) {
|
||||
register_usb_transport(handle, serial_number);
|
||||
register_usb_transport(handle, serial_number, 1);
|
||||
} else {
|
||||
D("register_new_device failed for %s\n", interf_name);
|
||||
usb_cleanup_handle(handle);
|
||||
|
|
Loading…
Reference in New Issue