mirror of
https://github.com/espressif/openthread.git
synced 2026-08-10 12:47:47 +00:00
[diag] initialize tx power and channel on start (#4890)
This commit is contained in:
@@ -160,9 +160,6 @@ Diags::Diags(Instance &aInstance)
|
||||
, mRepeatActive(false)
|
||||
{
|
||||
mStats.Clear();
|
||||
|
||||
otPlatDiagChannelSet(mChannel);
|
||||
otPlatDiagTxPowerSet(mTxPower);
|
||||
}
|
||||
|
||||
otError Diags::ProcessChannel(uint8_t aArgsLength, char *aArgs[], char *aOutput, size_t aOutputMaxLen)
|
||||
@@ -291,6 +288,9 @@ otError Diags::ProcessStart(uint8_t aArgsLength, char *aArgs[], char *aOutput, s
|
||||
|
||||
otError error = OT_ERROR_NONE;
|
||||
|
||||
otPlatDiagChannelSet(mChannel);
|
||||
otPlatDiagTxPowerSet(mTxPower);
|
||||
|
||||
Get<Radio>().Enable();
|
||||
Get<Radio>().SetPromiscuous(true);
|
||||
otPlatAlarmMilliStop(&GetInstance());
|
||||
|
||||
Reference in New Issue
Block a user