mirror of
https://github.com/espressif/openthread.git
synced 2026-08-09 20:27:47 +00:00
[mac] keep the second energy scan sample (#3871)
This commit fixes an issue where the second sample is skipped because the timer had not expired yet.
This commit is contained in:
@@ -421,8 +421,7 @@ otError SubMac::EnergyScan(uint8_t aScanChannel, uint16_t aScanDuration)
|
||||
SetState(kStateEnergyScan);
|
||||
mEnergyScanMaxRssi = kInvalidRssiValue;
|
||||
mEnergyScanEndTime = TimerMilli::GetNow() + aScanDuration;
|
||||
mTimer.Start(kEnergyScanRssiSampleInterval);
|
||||
SampleRssi();
|
||||
mTimer.Start(0);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user