Skip to content

Commit

Permalink
Fix USB MTP receive packet loss
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulStoffregen committed Dec 7, 2021
1 parent 880c532 commit e04c6ea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions teensy4/usb.c
Expand Up @@ -917,6 +917,10 @@ static void schedule_transfer(endpoint_t *endpoint, uint32_t epmask, transfer_t
//USB1_USBCMD &= ~USB_USBCMD_ATDTW;
if (status & epmask) goto end;
//ret |= 0x02;
endpoint->next = (uint32_t)transfer;
endpoint->status = 0;
USB1_ENDPTPRIME |= epmask;
goto end;
}
//digitalWriteFast(4, HIGH);
endpoint->next = (uint32_t)transfer;
Expand Down

0 comments on commit e04c6ea

Please sign in to comment.