mirror of
https://github.com/cathery/sys-con.git
synced 2024-12-24 15:13:45 +00:00
Changed hdl removal check because the previous one was too late to update
This commit is contained in:
parent
855561280a
commit
cc1e83e954
@ -115,8 +115,8 @@ Result SwitchHDLHandler::UpdateHdlState()
|
||||
{
|
||||
//Checks if the virtual device was erased, in which case re-attach the device
|
||||
bool found_flag = false;
|
||||
HiddbgHdlsNpadAssignment list;
|
||||
hiddbgDumpHdlsNpadAssignmentState(&list);
|
||||
HiddbgHdlsStateList list;
|
||||
hiddbgDumpHdlsStates(&list);
|
||||
for (int i = 0; i != list.total_entries; ++i)
|
||||
{
|
||||
if (list.entries[i].HdlsHandle == m_hdlHandle)
|
||||
|
@ -54,7 +54,6 @@ void SwitchUSBInterface::Close()
|
||||
if (endpoint)
|
||||
{
|
||||
endpoint->Close();
|
||||
endpoint.release();
|
||||
}
|
||||
}
|
||||
for (auto &&endpoint : m_outEndpoints)
|
||||
@ -62,7 +61,6 @@ void SwitchUSBInterface::Close()
|
||||
if (endpoint)
|
||||
{
|
||||
endpoint->Close();
|
||||
endpoint.release();
|
||||
}
|
||||
}
|
||||
usbHsIfClose(&m_session);
|
||||
|
Loading…
Reference in New Issue
Block a user