Increase timeouts for super duper slow machines
This commit is contained in:
parent
54dea51b01
commit
3f5a38d405
@ -438,7 +438,7 @@ static Result _usbCommsRead(usbCommsInterface *interface, void* buffer, size_t s
|
||||
rc = usbDsEndpoint_PostBufferAsync(interface->endpoint_out, transfer_buffer, chunksize, &urbId);
|
||||
if (R_FAILED(rc)) return rc;
|
||||
//Wait for the transfer to finish.
|
||||
if (size < 0x1000) rc = eventWait(&interface->endpoint_out->CompletionEvent, 1000000000);
|
||||
if (size < 0x1000) rc = eventWait(&interface->endpoint_out->CompletionEvent, 2000000000);
|
||||
else rc = eventWait(&interface->endpoint_out->CompletionEvent, 5000000000);
|
||||
if (R_FAILED(rc))
|
||||
{
|
||||
@ -509,7 +509,7 @@ static Result _usbCommsWrite(usbCommsInterface *interface, const void* buffer, s
|
||||
if(R_FAILED(rc))return rc;
|
||||
|
||||
//Wait for the transfer to finish.
|
||||
if (size < 0x1000) rc = eventWait(&interface->endpoint_in->CompletionEvent, 1000000000);
|
||||
if (size < 0x1000) rc = eventWait(&interface->endpoint_in->CompletionEvent, 2000000000);
|
||||
else rc = eventWait(&interface->endpoint_in->CompletionEvent, 5000000000);
|
||||
if (R_FAILED(rc))
|
||||
{
|
||||
|
Reference in New Issue
Block a user