Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a8be72f6 authored by Mike Lockwood's avatar Mike Lockwood
Browse files

adb: update call to register_usb_transport in Mac and Windows builds.

parent 95b837d3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -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);