revert out of scope changes

This commit is contained in:
hathach 2023-07-31 17:13:21 +07:00
parent 0d9973ef87
commit cb47231518
No known key found for this signature in database
GPG Key ID: F5D50C6D51D17CBA

View File

@ -258,7 +258,7 @@ static bool usbh_control_xfer_cb (uint8_t daddr, uint8_t ep_addr, xfer_result_t
#if CFG_TUSB_OS == OPT_OS_NONE
// TODO rework time-related function later
TU_ATTR_WEAK void osal_task_delay(uint32_t msec)
void osal_task_delay(uint32_t msec)
{
const uint32_t start = hcd_frame_number(_usbh_controller);
while ( ( hcd_frame_number(_usbh_controller) - start ) < msec ) {}