mirror of
https://github.com/espressif/openthread.git
synced 2026-08-14 06:37:46 +00:00
[diag] send frames only from the alarm handler in repeat mode (#4343)
This commit is contained in:
committed by
Jonathan Hui
parent
61088c7782
commit
205842d414
@@ -423,13 +423,18 @@ void Diags::TransmitDone(otError aError)
|
||||
if (mTxPackets > 1)
|
||||
{
|
||||
mTxPackets--;
|
||||
TransmitPacket();
|
||||
}
|
||||
else
|
||||
{
|
||||
ExitNow();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
TransmitPacket();
|
||||
}
|
||||
|
||||
VerifyOrExit(!mRepeatActive);
|
||||
TransmitPacket();
|
||||
|
||||
exit:
|
||||
return;
|
||||
}
|
||||
|
||||
#endif // OPENTHREAD_RADIO
|
||||
|
||||
Reference in New Issue
Block a user