Skip to content

Commit fd822d2

Browse files
committed
[radio] adapt to simplified transimission time information
Similarly as for `otPlatRadioReceiveAt`, use a `SAFE_DELTA` for `otPlatRadioTransmit` when transmission time is specified in the frame.
1 parent 1e818ee commit fd822d2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/src/radio.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,8 +533,8 @@ otError otPlatRadioTransmit(otInstance *aInstance, otRadioFrame *aFrame)
533533

534534
if (aFrame->mInfo.mTxInfo.mTxDelay != 0)
535535
{
536-
if (!nrf_802154_transmit_raw_at(&aFrame->mPsdu[-1], true, aFrame->mInfo.mTxInfo.mTxDelayBaseTime,
537-
aFrame->mInfo.mTxInfo.mTxDelay, aFrame->mChannel))
536+
if (!nrf_802154_transmit_raw_at(&aFrame->mPsdu[-1], true, aFrame->mInfo.mTxInfo.mTxTime - SAFE_DELTA,
537+
SAFE_DELTA, aFrame->mChannel))
538538
{
539539
error = OT_ERROR_INVALID_STATE;
540540
}

0 commit comments

Comments
 (0)