libusb: support hotplug

This commit is contained in:
Sanjay Govind 2025-01-24 08:23:07 +13:00
commit 6589f0eb20

View file

@ -1033,7 +1033,7 @@ void handle_hotplug_event(bool connected)
{ {
if (auto usbh = g_fxo->try_get<named_thread<usb_handler_thread>>()) if (auto usbh = g_fxo->try_get<named_thread<usb_handler_thread>>())
{ {
usbh.usb_hotplug_timeout = get_system_time() + (connected ? 500'000ull : 0); usbh->usb_hotplug_timeout = get_system_time() + (connected ? 500'000ull : 0);
} }
} }