mirror of https://github.com/opencardev/aasdk
auto connect USB on startup (#17)
parent
e1dd406287
commit
34384025f0
|
@ -49,7 +49,7 @@ void USBHub::start(Promise::Pointer promise)
|
|||
if(self_ == nullptr)
|
||||
{
|
||||
self_ = this->shared_from_this();
|
||||
hotplugHandle_ = usbWrapper_.hotplugRegisterCallback(LIBUSB_HOTPLUG_EVENT_DEVICE_ARRIVED, LIBUSB_HOTPLUG_NO_FLAGS, LIBUSB_HOTPLUG_MATCH_ANY, LIBUSB_HOTPLUG_MATCH_ANY,
|
||||
hotplugHandle_ = usbWrapper_.hotplugRegisterCallback(LIBUSB_HOTPLUG_EVENT_DEVICE_ARRIVED, LIBUSB_HOTPLUG_ENUMERATE, LIBUSB_HOTPLUG_MATCH_ANY, LIBUSB_HOTPLUG_MATCH_ANY,
|
||||
LIBUSB_HOTPLUG_MATCH_ANY, reinterpret_cast<libusb_hotplug_callback_fn>(&USBHub::hotplugEventsHandler), reinterpret_cast<void*>(this));
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue