summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Berger <[email protected]>2026-02-01 22:29:52 +0100
committerCédric Berger <[email protected]>2026-02-01 22:29:52 +0100
commitd2f1b1899d4dbdab2a5bfd822c3bbe5fc0ee8deb (patch)
tree4dd8ed5fab8479c1793bd29302ac679af7269f3a
parentb73df6c22e4743f9232f7922fe2cf0fbd05a3a2e (diff)
Actually exit the loop in addition to logging. ENOTENOUGHCOFFEE
-rw-r--r--src/device/usbd.c1
-rw-r--r--src/host/usbh.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c
index 8f3a7a226..cca4169d7 100644
--- a/src/device/usbd.c
+++ b/src/device/usbd.c
@@ -671,6 +671,7 @@ void tud_task_ext(uint32_t timeout_ms, bool in_isr) {
#if CFG_TUD_TASK_EVENTS_PER_RUN > 0
if (epr >= CFG_TUD_TASK_EVENTS_PER_RUN) {
TU_LOG_USBD("USBD event limit (" TU_XSTRING(CFG_TUD_TASK_EVENTS_PER_RUN) ") reached\r\n");
+ break;
}
#endif
dcd_event_t event;
diff --git a/src/host/usbh.c b/src/host/usbh.c
index cc99c0a53..41f41dcfb 100644
--- a/src/host/usbh.c
+++ b/src/host/usbh.c
@@ -604,6 +604,7 @@ void tuh_task_ext(uint32_t timeout_ms, bool in_isr) {
#if CFG_TUH_TASK_EVENTS_PER_RUN > 0
if (epr >= CFG_TUH_TASK_EVENTS_PER_RUN) {
TU_LOG_USBH("USBH event limit (" TU_XSTRING(CFG_TUH_TASK_EVENTS_PER_RUN) ") reached\r\n");
+ break;
}
#endif
hcd_event_t event;