diff options
| author | Rocky04 <[email protected]> | 2023-09-14 18:53:55 +0000 |
|---|---|---|
| committer | Rocky04 <[email protected]> | 2023-09-14 18:53:55 +0000 |
| commit | 46977a011d88b8954083de0fc8201350bcda5884 (patch) | |
| tree | 8ff75f2fcbe5277098b48d7da220772dbcb7cb6c /src/device | |
| parent | 288f24b294a96f8edc12943d21278020e3e398e3 (diff) | |
Fixign errors
Diffstat (limited to 'src/device')
| -rw-r--r-- | src/device/usbd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c index 83d09a359..1ca5cc9cf 100644 --- a/src/device/usbd.c +++ b/src/device/usbd.c @@ -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; |
