dcd_msp430x5xx: Fix clear stall logic.

This commit is contained in:
William D. Jones 2019-09-29 02:17:59 -04:00
parent 529efcc0d2
commit ea0e799df6
1 changed files with 2 additions and 2 deletions

View File

@ -337,11 +337,11 @@ void dcd_edpt_clear_stall (uint8_t rhport, uint8_t ep_addr)
{
if(dir == TUSB_DIR_OUT)
{
USBOEPCNT_0 &= ~NAK;
USBOEPCNT_0 &= ~STALL;
}
else
{
USBIEPCNT_0 &= ~NAK;
USBIEPCNT_0 &= ~STALL;
}
}
}