From 2399220cc5f285afa77e5b801571c4f893ea56e8 Mon Sep 17 00:00:00 2001 From: Simon Lin Date: Fri, 19 Jun 2020 10:54:04 +0800 Subject: [PATCH] [otns] allow build without JOINER=1 (#5120) --- src/core/utils/otns.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/utils/otns.cpp b/src/core/utils/otns.cpp index db68b3d11..3065c2b3a 100644 --- a/src/core/utils/otns.cpp +++ b/src/core/utils/otns.cpp @@ -103,10 +103,12 @@ void Otns::HandleNotifierEvents(Events aEvents) EmitStatus("parid=%x", Get().GetLeaderData().GetPartitionId()); } +#if OPENTHREAD_CONFIG_JOINER_ENABLE if (aEvents.Contains(kEventJoinerStateChanged)) { EmitStatus("joiner_state=%d", Get().GetState()); } +#endif } void Otns::EmitNeighborChange(otNeighborTableEvent aEvent, Neighbor &aNeighbor)