mirror of
https://github.com/espressif/openthread.git
synced 2026-08-11 13:17:48 +00:00
[build] fix build with announce sender enabled (#3739)
This commit is contained in:
committed by
Jonathan Hui
parent
33b903bc62
commit
9847be8328
+1
-1
@@ -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
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user