False negative in tuh_task_event_ready()

This commit is contained in:
Cédric Berger
2026-03-22 14:09:41 +01:00
parent ace993c21b
commit 3a262cb6ea

View File

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