mirror of
https://github.com/espressif/openthread.git
synced 2026-09-15 13:40:06 +00:00
[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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user