summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/usbh_lld_stm32f4.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/usbh_lld_stm32f4.c b/src/usbh_lld_stm32f4.c
index 6cf6015..ad14d2e 100644
--- a/src/usbh_lld_stm32f4.c
+++ b/src/usbh_lld_stm32f4.c
@@ -903,12 +903,11 @@ static void poll_reset(usbh_lld_stm32f4_driver_data_t *dev)
static enum USBH_POLL_STATUS stm32f4_usbh_poll(void *drvdata, uint32_t time_curr_us)
{
-
(void)time_curr_us;
+
usbh_lld_stm32f4_driver_data_t *dev = drvdata;
- uint32_t ret = ret = USBH_POLL_STATUS_NONE;
+ enum USBH_POLL_STATUS ret = USBH_POLL_STATUS_NONE;
- // TODO: Check overflow case
dev->time_curr_us = time_curr_us;
switch (dev->state) {
@@ -923,6 +922,7 @@ static enum USBH_POLL_STATUS stm32f4_usbh_poll(void *drvdata, uint32_t time_curr
case DEVICE_STATE_RESET:
poll_reset(dev);
break;
+
default:
break;
}