Actually exit the loop in addition to logging. ENOTENOUGHCOFFEE

This commit is contained in:
Cédric Berger
2026-02-01 22:29:52 +01:00
parent b73df6c22e
commit d2f1b1899d
2 changed files with 2 additions and 0 deletions

View File

@ -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;

View File

@ -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;