From 3a262cb6ea8b070bd2fb6e32d2f754315077bd42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Berger?= Date: Sun, 22 Mar 2026 14:09:41 +0100 Subject: [PATCH] False negative in tuh_task_event_ready() --- src/host/usbh.c | 7 +++++++ 1 file changed, 7 insertions(+) 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; }