mirror of
https://github.com/cathery/sys-con.git
synced 2024-12-26 03:17:58 +00:00
added interval sleep after endpoint write
This commit is contained in:
parent
b4ee502e04
commit
d9d4ccf1d4
@ -42,6 +42,11 @@ Result SwitchUSBEndpoint::Write(const void *inBuffer, size_t bufferSize)
|
|||||||
}
|
}
|
||||||
|
|
||||||
rc = usbHsEpPostBuffer(&m_epSession, m_buffer, bufferSize, &transferredSize);
|
rc = usbHsEpPostBuffer(&m_epSession, m_buffer, bufferSize, &transferredSize);
|
||||||
|
|
||||||
|
if (R_SUCCEEDED(rc))
|
||||||
|
{
|
||||||
|
svcSleepThread(m_descriptor->bInterval * 1e+6L);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user