[low-power] fix csl posix build problem (#5467)

This commit changes TimeMicro::kMaxDuration to Time::kMaxDuration
because in posix OPENTHREAD_CONFIG_PLATFORM_USEC_TIMER_ENABLE is not
set and TimeMicro is not defined.

And in this context, the intent is just to set the variable to a
maximum value.
This commit is contained in:
Li Cao
2020-08-30 13:06:02 -07:00
committed by GitHub
parent 7266e1b909
commit 2e9f1e50cd
+1 -1
View File
@@ -110,7 +110,7 @@ void CslTxScheduler::Clear(void)
void CslTxScheduler::RescheduleCslTx(void)
{
uint64_t radioNow = otPlatRadioGetNow(&GetInstance());
uint32_t minDelayTime = TimeMicro::kMaxDuration;
uint32_t minDelayTime = Time::kMaxDuration;
Child * bestChild = nullptr;
for (Child &child : Get<ChildTable>().Iterate(Child::kInStateAnyExceptInvalid))