summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/host/usbh.c7
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;
}