forked from PAWPAW-Mirror/lib_xua
Merge pull request #262 from xmos/fix/261
Fix checking of return value of GetBuffer() in AudioEndpointRequests_1()
This commit is contained in:
@@ -1095,7 +1095,7 @@ int AudioEndpointRequests_1(XUD_ep ep0_out, XUD_ep ep0_in, USB_SetupPacket_t &sp
|
|||||||
/* Check Control Selector */
|
/* Check Control Selector */
|
||||||
unsigned short controlSelector = sp.wValue>>8;
|
unsigned short controlSelector = sp.wValue>>8;
|
||||||
|
|
||||||
if((result != XUD_GetBuffer(ep0_out, (buffer, unsigned char[]), length)) != XUD_RES_OKAY)
|
if((result = XUD_GetBuffer(ep0_out, (buffer, unsigned char[]), length)) != XUD_RES_OKAY)
|
||||||
{
|
{
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user