diff options
| author | Cédric Berger <[email protected]> | 2026-03-22 14:09:41 +0100 |
|---|---|---|
| committer | Cédric Berger <[email protected]> | 2026-03-22 14:09:41 +0100 |
| commit | 3a262cb6ea8b070bd2fb6e32d2f754315077bd42 (patch) | |
| tree | ef76269b99648eb2485e9a92b5ad5be7c92084b3 | |
| parent | ace993c21bf613c8ffadf36406e5c23ce844e940 (diff) | |
False negative in tuh_task_event_ready()
| -rw-r--r-- | src/host/usbh.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/host/usbh.c b/src/host/usbh.c index 78ed3e639..8f80800e9 100644 --- a/src/host/usbh.c +++ b/src/host/usbh.c @@ -617,6 +617,13 @@ bool tuh_task_event_ready(void) { } #endif + if (_usbh_data.call_after.func) { + int32_t remain_ms = (int32_t)(_usbh_data.call_after.at_ms - tusb_time_millis_api()); + if (remain_ms <= 0) { + return true; + } + } + return false; } |
