From 9847be8328e78d03a4f79627ef11742995765d4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Duda?= Date: Sun, 7 Apr 2019 06:41:45 +0200 Subject: [PATCH] [build] fix build with announce sender enabled (#3739) --- .travis/script.sh | 2 +- src/core/thread/announce_sender.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis/script.sh b/.travis/script.sh index b0a025d83..bb1c7c4fa 100755 --- a/.travis/script.sh +++ b/.travis/script.sh @@ -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 diff --git a/src/core/thread/announce_sender.cpp b/src/core/thread/announce_sender.cpp index 7349569f6..cb2f45a9e 100644 --- a/src/core/thread/announce_sender.cpp +++ b/src/core/thread/announce_sender.cpp @@ -154,7 +154,7 @@ void AnnounceSender::CheckState(void) ExitNow(); } - SuccessOrExit(Get().GetChannelMask(channelMask) == OT_ERROR_NONE, Stop()); + VerifyOrExit(Get().GetChannelMask(channelMask) == OT_ERROR_NONE, Stop()); period = interval / channelMask.GetNumberOfChannels();