1
0
mirror of https://github.com/cathery/sys-con.git synced 2024-10-04 21:39:43 +00:00

Fix multiple controllers being removed on unplug

This commit is contained in:
cathery 2019-11-22 00:39:35 +03:00
parent f96a167714
commit cbe4e5a39b

View File

@ -265,7 +265,7 @@ Result mainLoop()
WriteToLog("Interface state was changed"); WriteToLog("Interface state was changed");
eventClear(usbHsGetInterfaceStateChangeEvent()); eventClear(usbHsGetInterfaceStateChangeEvent());
UsbHsInterface interfaces[4]; UsbHsInterface interfaces[16];
s32 total_entries; s32 total_entries;
rc = usbHsQueryAcquiredInterfaces(interfaces, sizeof(interfaces), &total_entries); rc = usbHsQueryAcquiredInterfaces(interfaces, sizeof(interfaces), &total_entries);