mirror of
https://github.com/espressif/openthread.git
synced 2026-08-11 05:07:47 +00:00
Trigger attach if device fails to start Router Synchronization process (#1104)
This commit is contained in:
@@ -224,7 +224,10 @@ ThreadError Mle::Start(bool aEnableReattach)
|
||||
}
|
||||
else if (IsActiveRouter(GetRloc16()))
|
||||
{
|
||||
mMleRouter.BecomeRouter(ThreadStatusTlv::kTooFewRouters);
|
||||
if (mMleRouter.BecomeRouter(ThreadStatusTlv::kTooFewRouters) != kThreadError_None)
|
||||
{
|
||||
BecomeChild(kMleAttachAnyPartition);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user