mirror of
https://github.com/hathach/tinyusb.git
synced 2026-03-30 03:13:24 +00:00
False negative in tuh_task_event_ready()
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user