diff --git a/usb/device/targets/TARGET_NORDIC/TARGET_MCU_NRF52840/USBPhy_Nordic.cpp b/usb/device/targets/TARGET_NORDIC/TARGET_MCU_NRF52840/USBPhy_Nordic.cpp index acaf719ac2..4e1a976c9c 100644 --- a/usb/device/targets/TARGET_NORDIC/TARGET_MCU_NRF52840/USBPhy_Nordic.cpp +++ b/usb/device/targets/TARGET_NORDIC/TARGET_MCU_NRF52840/USBPhy_Nordic.cpp @@ -441,7 +441,7 @@ void USBPhyHw::process() { break; case NRF_DRV_USBD_EVT_SOF: if(sof_enabled) - events->sof(nrf_usbd_framecntr_get()); + events->sof(usb_event.data.sof.framecnt); break; case NRF_DRV_USBD_EVT_EPTRANSFER: if(usb_event.data.eptransfer.status == NRF_USBD_EP_OK)