mirror of
https://github.com/hathach/tinyusb.git
synced 2025-02-07 05:54:11 +08:00
Fixign errors
This commit is contained in:
parent
288f24b294
commit
46977a011d
@ -399,7 +399,7 @@ bool tud_sof_cb_enable(bool en)
|
||||
{
|
||||
TU_VERIFY(dcd_sof_enable);
|
||||
_usbd_sof.cb_en = en;
|
||||
dcd_sof_enable(rhport, _usbd_sof.value ? true : false);
|
||||
dcd_sof_enable(_usbd_rhport, _usbd_sof.value ? true : false);
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -623,7 +623,7 @@ void tud_task_ext(uint32_t timeout_ms, bool in_isr)
|
||||
if ( _usbd_sof.cb_en)
|
||||
{
|
||||
TU_LOG_USBD("\r\n");
|
||||
if ( tud_sof_cb ) tud_sof_cb(event->sof.frame_count);
|
||||
if ( tud_sof_cb ) tud_sof_cb(event.sof.frame_count);
|
||||
}
|
||||
break;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user