Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bouffalo lab] Advertise commissionable on last fabric removal is disabled by default #37531

Merged
merged 2 commits into from
Feb 14, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions examples/platform/bouffalolab/common/plat/plat.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@

#define EXT_DISCOVERY_TIMEOUT_SECS 20

#ifndef CONFIG_APP_FABRIC_TABLE_DELEGATE
#define CONFIG_APP_FABRIC_TABLE_DELEGATE 0
#endif

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

#ifdef __cplusplus
Expand Down
4 changes: 4 additions & 0 deletions examples/platform/bouffalolab/common/plat/platform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ void UnlockOpenThreadTask(void)
}
#endif

#if !CONFIG_APP_FABRIC_TABLE_DELEGATE
class AppFabricTableDelegate : public FabricTable::Delegate
{
void OnFabricRemoved(const FabricTable & fabricTable, FabricIndex fabricIndex)
Expand Down Expand Up @@ -206,6 +207,7 @@ class AppFabricTableDelegate : public FabricTable::Delegate
}
}
};
#endif

CHIP_ERROR PlatformManagerImpl::PlatformInit(void)
{
Expand Down Expand Up @@ -294,8 +296,10 @@ CHIP_ERROR PlatformManagerImpl::PlatformInit(void)

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

#if !CONFIG_APP_FABRIC_TABLE_DELEGATE
static AppFabricTableDelegate sAppFabricDelegate;
chip::Server::GetInstance().GetFabricTable().AddFabricDelegate(&sAppFabricDelegate);
#endif

chip::DeviceLayer::PlatformMgr().UnlockChipStack();

Expand Down
Loading