Skip to content

Commit

Permalink
Fix invalid type error
Browse files Browse the repository at this point in the history
  • Loading branch information
bshramin committed Jun 11, 2022
1 parent d3cf84a commit dc01b25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/USB/USBHub.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,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_flag)LIBUSB_HOTPLUG_NO_FLAGS, LIBUSB_HOTPLUG_MATCH_ANY, LIBUSB_HOTPLUG_MATCH_ANY,
LIBUSB_HOTPLUG_MATCH_ANY, reinterpret_cast<libusb_hotplug_callback_fn>(&USBHub::hotplugEventsHandler), reinterpret_cast<void*>(this));
}
});
Expand Down

0 comments on commit dc01b25

Please sign in to comment.