mirror of
https://github.com/espressif/openthread.git
synced 2026-09-10 19:20:06 +00:00
default leader weight should be 64 (#395)
This commit is contained in:
@@ -92,6 +92,7 @@ enum
|
||||
kReedAdvertiseInterval = 570, ///< REED_ADVERTISEMENT_INTERVAL (seconds)
|
||||
kReedAdvertiseJitter = 60, ///< REED_ADVERTISEMENT_JITTER (seconds)
|
||||
kMleEndDeviceTimeout = 240, ///< MLE_END_DEVICE_TIMEOUT (secondes)
|
||||
kLeaderWeight = 64, ///< Default leaderweight for the Thread Network Partition
|
||||
};
|
||||
|
||||
enum
|
||||
|
||||
@@ -63,7 +63,7 @@ MleRouter::MleRouter(ThreadNetif &aThreadNetif):
|
||||
|
||||
mNetworkIdTimeout = kNetworkIdTimeout;
|
||||
mRouterUpgradeThreshold = kRouterUpgradeThreshold;
|
||||
mLeaderWeight = 0;
|
||||
mLeaderWeight = kLeaderWeight;
|
||||
mFixedLeaderPartitionId = 0;
|
||||
mRouterId = kMaxRouterId;
|
||||
mPreviousRouterId = kMaxRouterId;
|
||||
|
||||
Reference in New Issue
Block a user