[otns] allow build without JOINER=1 (#5120)

This commit is contained in:
Simon Lin
2020-06-18 19:54:04 -07:00
committed by GitHub
parent 7574cde264
commit 2399220cc5
+2
View File
@@ -103,10 +103,12 @@ void Otns::HandleNotifierEvents(Events aEvents)
EmitStatus("parid=%x", Get<Mle::Mle>().GetLeaderData().GetPartitionId());
}
#if OPENTHREAD_CONFIG_JOINER_ENABLE
if (aEvents.Contains(kEventJoinerStateChanged))
{
EmitStatus("joiner_state=%d", Get<MeshCoP::Joiner>().GetState());
}
#endif
}
void Otns::EmitNeighborChange(otNeighborTableEvent aEvent, Neighbor &aNeighbor)