From cd7eee31f1c927d7d57203070fd80c0d85f70f05 Mon Sep 17 00:00:00 2001 From: George Beckstein Date: Sat, 19 Jan 2019 14:45:40 -0500 Subject: [PATCH] Removed function call for SOF event -- frame counter is already included in data from usb event --- .../targets/TARGET_NORDIC/TARGET_MCU_NRF52840/USBPhy_Nordic.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)