mirror of
https://github.com/espressif/openthread.git
synced 2026-08-12 21:57:47 +00:00
[posix] fix time sync issue (#4057)
#4015 missed setting the timestamp when TIME_SYNC is enabled.
This commit is contained in:
committed by
Jonathan Hui
parent
f37c3256e7
commit
14875e1380
@@ -634,7 +634,9 @@ static void radioReceive(otInstance *aInstance)
|
||||
otEXPECT(sReceiveFrame.mChannel == sReceiveMessage.mChannel);
|
||||
otEXPECT(sState == OT_RADIO_STATE_RECEIVE || sState == OT_RADIO_STATE_TRANSMIT);
|
||||
|
||||
#if !OPENTHREAD_CONFIG_TIME_SYNC_ENABLE
|
||||
if (otPlatRadioGetPromiscuous(aInstance))
|
||||
#endif
|
||||
{
|
||||
// Unable to simulate SFD, so use the rx done timestamp instead.
|
||||
sReceiveFrame.mInfo.mRxInfo.mTimestamp = otPlatTimeGet();
|
||||
|
||||
Reference in New Issue
Block a user