summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNathan Conrad <[email protected]>2019-10-02 00:31:47 -0400
committerNathan Conrad <[email protected]>2019-10-02 00:31:47 -0400
commit1e193212d7f93a55e7ec857d0ad8dc4eaea517de (patch)
tree49a97856a7b3d2d730ad7e8e3ba454879e39f400 /src
parente5f38e3e861cb20046a81e666e8de9a7fdc3919d (diff)
Add testcase for EP0 stall recovery to USBTMC test script.
Diffstat (limited to 'src')
-rw-r--r--src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c b/src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c
index 1fd3e8bae..c33f9b865 100644
--- a/src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c
+++ b/src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c
@@ -418,7 +418,7 @@ static uint16_t dcd_ep_ctr_handler(void)
uint8_t userMemBuf[8];
/* Get SETUP Packet*/
count = pcd_get_ep_rx_cnt(USB, EPindex);
- if(count == 8) // Setup packet should always be 8 bits. If not, ignore it, and try again.
+ if(count == 8) // Setup packet should always be 8 bytes. If not, ignore it, and try again.
{
// Must reset EP to NAK (in case it had been stalling) (though, maybe too late here)
pcd_set_ep_rx_status(USB,0u,USB_EP_RX_NAK);