From aa48f4d7b79f53d8e8a4f2b229571baf0a768770 Mon Sep 17 00:00:00 2001 From: Kamil Sroka Date: Fri, 22 Jun 2018 18:23:12 +0200 Subject: [PATCH] [nrf52840] fix building with link raw enabled (#2820) --- examples/platforms/nrf52840/radio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/platforms/nrf52840/radio.c b/examples/platforms/nrf52840/radio.c index ed3be25c0..0781318ec 100644 --- a/examples/platforms/nrf52840/radio.c +++ b/examples/platforms/nrf52840/radio.c @@ -686,7 +686,7 @@ void nrf_802154_received_raw(uint8_t *p_data, int8_t power, uint8_t lqi) #if OPENTHREAD_ENABLE_RAW_LINK_API uint64_t timestamp = nrf5AlarmGetCurrentTime(); receivedFrame->mInfo.mRxInfo.mMsec = timestamp / US_PER_MS; - receivedFrame->mInfo.mRxInfo.mUsec = timestamp - receivedFrame->mMsec * US_PER_MS; + receivedFrame->mInfo.mRxInfo.mUsec = timestamp - receivedFrame->mInfo.mRxInfo.mMsec * US_PER_MS; #endif PlatformEventSignalPending();