Skip to content

Commit

Permalink
[Telink] Add CHIP_DEVICE_CONFIG_ENABLE_THREAD check
Browse files Browse the repository at this point in the history
  • Loading branch information
s07641069 committed Mar 1, 2023
1 parent dd0d82d commit 17571fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/app/server/CommissioningWindowManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <platform/CommissionableDataProvider.h>
#include <platform/DeviceControlServer.h>

#if CHIP_DEVICE_CONFIG_THREAD_FTD
#if CHIP_DEVICE_CONFIG_ENABLE_THREAD && CHIP_DEVICE_CONFIG_THREAD_FTD
#include <openthread/thread_ftd.h>
using namespace chip::DeviceLayer;
#endif
Expand Down Expand Up @@ -553,7 +553,7 @@ void CommissioningWindowManager::UpdateWindowStatus(CommissioningWindowStatusEnu
AdministratorCommissioning::Attributes::WindowStatus::Id);
}

#if CHIP_DEVICE_CONFIG_THREAD_FTD
#if CHIP_DEVICE_CONFIG_ENABLE_THREAD && CHIP_DEVICE_CONFIG_THREAD_FTD
// Block device role changing into Router if commissioning window opened and device not yet Router.
if (mWindowStatus == CommissioningWindowStatusEnum::kEnhancedWindowOpen &&
ConnectivityManagerImpl().GetThreadDeviceType() == ConnectivityManager::kThreadDeviceType_Router &&
Expand Down
2 changes: 1 addition & 1 deletion src/app/server/CommissioningWindowManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ class CommissioningWindowManager : public Messaging::UnsolicitedMessageHandler,
bool mSEDActiveModeEnabled = false;
#endif

#if CHIP_DEVICE_CONFIG_THREAD_FTD
#if CHIP_DEVICE_CONFIG_ENABLE_THREAD && CHIP_DEVICE_CONFIG_THREAD_FTD
bool mRecoverRouterDeviceRole = false;
#endif

Expand Down

0 comments on commit 17571fe

Please sign in to comment.