Skip to content

Commit cc9b25e

Browse files
committed
Make pairing start on last fabric removal is disabled by default
1 parent c9ee3ee commit cc9b25e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/platform/bouffalolab/common/plat/plat.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323

2424
#define EXT_DISCOVERY_TIMEOUT_SECS 20
2525

26-
#ifndef CONFIG_APP_FABRIC_TABLE_DELEGATE
27-
#define CONFIG_APP_FABRIC_TABLE_DELEGATE 0
26+
#ifndef CONFIG_APP_PAIRING_START_ON_LAST_FABRIC_REMOVAL
27+
#define CONFIG_APP_PAIRING_START_ON_LAST_FABRIC_REMOVAL 0
2828
#endif
2929

3030
typedef void (*app_pds_gpio_irq_handler_t)(void * arg);

examples/platform/bouffalolab/common/plat/platform.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ void UnlockOpenThreadTask(void)
178178
}
179179
#endif
180180

181-
#if !CONFIG_APP_FABRIC_TABLE_DELEGATE
181+
#if CONFIG_APP_PAIRING_START_ON_LAST_FABRIC_REMOVAL
182182
class AppFabricTableDelegate : public FabricTable::Delegate
183183
{
184184
void OnFabricRemoved(const FabricTable & fabricTable, FabricIndex fabricIndex)
@@ -296,7 +296,7 @@ CHIP_ERROR PlatformManagerImpl::PlatformInit(void)
296296

297297
gExampleDeviceInfoProvider.SetStorageDelegate(&chip::Server::GetInstance().GetPersistentStorage());
298298

299-
#if !CONFIG_APP_FABRIC_TABLE_DELEGATE
299+
#if CONFIG_APP_PAIRING_START_ON_LAST_FABRIC_REMOVAL
300300
static AppFabricTableDelegate sAppFabricDelegate;
301301
chip::Server::GetInstance().GetFabricTable().AddFabricDelegate(&sAppFabricDelegate);
302302
#endif

0 commit comments

Comments
 (0)