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

added interval sleep after endpoint write

This commit is contained in:
cathery 2019-11-08 15:55:54 +03:00
parent b4ee502e04
commit d9d4ccf1d4

View File

@ -42,6 +42,11 @@ Result SwitchUSBEndpoint::Write(const void *inBuffer, size_t bufferSize)
}
rc = usbHsEpPostBuffer(&m_epSession, m_buffer, bufferSize, &transferredSize);
if (R_SUCCEEDED(rc))
{
svcSleepThread(m_descriptor->bInterval * 1e+6L);
}
}
return rc;
}