From 28cf269481e8b22069d164dbdb71dbd9cca713f5 Mon Sep 17 00:00:00 2001 From: Markov Vladislav Date: Tue, 5 Feb 2019 01:53:09 +0700 Subject: [PATCH] [topology] add static assertion to exclude counter overflow (#3550) --- src/core/thread/topology.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/thread/topology.hpp b/src/core/thread/topology.hpp index 3f21316c1..b82495296 100644 --- a/src/core/thread/topology.hpp +++ b/src/core/thread/topology.hpp @@ -853,6 +853,8 @@ private: #if OPENTHREAD_ENABLE_CHILD_SUPERVISION uint16_t mSecondsSinceSupervision; ///< Number of seconds since last supervision of the child. #endif // OPENTHREAD_ENABLE_CHILD_SUPERVISION + + OT_STATIC_ASSERT(OPENTHREAD_CONFIG_NUM_MESSAGE_BUFFERS < 8192, "mQueuedMessageCount cannot fit max required!"); }; /**