1
0
mirror of https://github.com/cathery/sys-con.git synced 2024-07-01 01:38:44 +00:00

Changed hdl removal check because the previous one was too late to update

This commit is contained in:
cathery 2019-11-05 11:59:08 +03:00
parent 855561280a
commit cc1e83e954
2 changed files with 2 additions and 4 deletions

View File

@ -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)

View File

@ -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);