From 2e9f1e50cd493e4570aee02ac2d7f402cb3c4e2f Mon Sep 17 00:00:00 2001 From: Li Cao Date: Mon, 31 Aug 2020 04:06:02 +0800 Subject: [PATCH] [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. --- src/core/thread/csl_tx_scheduler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/thread/csl_tx_scheduler.cpp b/src/core/thread/csl_tx_scheduler.cpp index 593307524..725f96174 100644 --- a/src/core/thread/csl_tx_scheduler.cpp +++ b/src/core/thread/csl_tx_scheduler.cpp @@ -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().Iterate(Child::kInStateAnyExceptInvalid))