Skip to content

Commit

Permalink
[radio] adapt to simplified transimission time information
Browse files Browse the repository at this point in the history
Similarly as for `otPlatRadioReceiveAt`, use a `SAFE_DELTA` for
`otPlatRadioTransmit` when transmission time is specified in the
frame.
  • Loading branch information
edmont committed Feb 22, 2023
1 parent 1e818ee commit 0b0ab55
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/src/radio.c
Original file line number Diff line number Diff line change
Expand Up @@ -531,10 +531,10 @@ otError otPlatRadioTransmit(otInstance *aInstance, otRadioFrame *aFrame)
otMacFrameSetFrameCounter(aFrame, sMacFrameCounter++);
}

if (aFrame->mInfo.mTxInfo.mTxDelay != 0)
if (aFrame->mInfo.mTxInfo.mTxTime != 0)
{
if (!nrf_802154_transmit_raw_at(&aFrame->mPsdu[-1], true, aFrame->mInfo.mTxInfo.mTxDelayBaseTime,
aFrame->mInfo.mTxInfo.mTxDelay, aFrame->mChannel))
if (!nrf_802154_transmit_raw_at(&aFrame->mPsdu[-1], true, aFrame->mInfo.mTxInfo.mTxTime - SAFE_DELTA,
SAFE_DELTA, aFrame->mChannel))
{
error = OT_ERROR_INVALID_STATE;
}
Expand Down

0 comments on commit 0b0ab55

Please sign in to comment.