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 fd822d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/src/radio.c
Original file line number Diff line number Diff line change
Expand Up @@ -533,8 +533,8 @@ otError otPlatRadioTransmit(otInstance *aInstance, otRadioFrame *aFrame)

if (aFrame->mInfo.mTxInfo.mTxDelay != 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 fd822d2

Please sign in to comment.