[build] fix build with announce sender enabled (#3739)

This commit is contained in:
Łukasz Duda
2019-04-06 21:41:45 -07:00
committed by Jonathan Hui
parent 33b903bc62
commit 9847be8328
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -395,7 +395,7 @@ build_samr21() {
--disable-tests || die
make -j 8 || die
export CPPFLAGS=-DOPENTHREAD_CONFIG_ENABLE_TIME_SYNC=1
export CPPFLAGS="-DOPENTHREAD_CONFIG_ENABLE_TIME_SYNC=1 -DOPENTHREAD_CONFIG_ENABLE_ANNOUNCE_SENDER=1"
git checkout -- . || die
git clean -xfd || die
+1 -1
View File
@@ -154,7 +154,7 @@ void AnnounceSender::CheckState(void)
ExitNow();
}
SuccessOrExit(Get<MeshCoP::ActiveDataset>().GetChannelMask(channelMask) == OT_ERROR_NONE, Stop());
VerifyOrExit(Get<MeshCoP::ActiveDataset>().GetChannelMask(channelMask) == OT_ERROR_NONE, Stop());
period = interval / channelMask.GetNumberOfChannels();