raise timeouts on USB on atsamd and fix slice sizing

This commit is contained in:
Jaden Weiss
2019-10-04 11:11:48 -04:00
committed by Ron Evans
parent ab50f823dd
commit 8fe126b1f6
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1614,7 +1614,7 @@ func receiveUSBControlPacket() []byte {
setEPSTATUSCLR(0, sam.USB_DEVICE_EPSTATUSCLR_BK0RDY)
// Wait until OUT transfer is ready.
timeout := 3000
timeout := 300000
for (getEPSTATUS(0) & sam.USB_DEVICE_EPSTATUS_BK0RDY) == 0 {
timeout--
if timeout == 0 {