summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWilliam D. Jones <[email protected]>2019-09-29 02:17:59 -0400
committerWilliam D. Jones <[email protected]>2019-09-29 02:17:59 -0400
commitea0e799df6594fa6644575493547f41994c9be27 (patch)
tree6e15bad7b6ec818be46ad7ca2cc1d6d68d1a0288 /src
parent529efcc0d2b60cceac14ca01a1f6e5fecab4d8aa (diff)
dcd_msp430x5xx: Fix clear stall logic.
Diffstat (limited to 'src')
-rw-r--r--src/portable/ti/msp430x5xx/dcd_msp430x5xx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/portable/ti/msp430x5xx/dcd_msp430x5xx.c b/src/portable/ti/msp430x5xx/dcd_msp430x5xx.c
index aac4f01db..edb707963 100644
--- a/src/portable/ti/msp430x5xx/dcd_msp430x5xx.c
+++ b/src/portable/ti/msp430x5xx/dcd_msp430x5xx.c
@@ -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;
}
}
}