Apply suggestions from code review

Co-authored-by: Ciaran Woodward <ciaranwoodward@gmail.com>
This commit is contained in:
Angel Cascarino
2021-12-20 17:17:34 +00:00
committed by GitHub
parent 244a7718a1
commit 77398218b5

View File

@@ -375,10 +375,10 @@ void XUA_Buffer_Ep(register chanend c_aud_out,
#if( 0 < HID_CONTROLS )
UserHIDInit();
{
/* Stall until Report Descriptor has been prepared */
while (!hidIsReportDescriptorPrepared());
while (!hidIsReportDescriptorPrepared())
;
/* Get the last report - we don't really care which it is, so long as there's some data we can grab. */
/* Get data from the last report, which which we can prep XUD*/
int hidReportLength = (int) UserHIDGetData(hidGetReportIdLimit() - 1, g_hidData);
XUD_SetReady_In(ep_hid, g_hidData, hidReportLength);