File tree 2 files changed +8
-0
lines changed
examples/platform/bouffalolab/common/plat
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 23
23
24
24
#define EXT_DISCOVERY_TIMEOUT_SECS 20
25
25
26
+ #ifndef CONFIG_APP_FABRIC_TABLE_DELEGATE
27
+ #define CONFIG_APP_FABRIC_TABLE_DELEGATE 0
28
+ #endif
29
+
26
30
typedef void (* app_pds_gpio_irq_handler_t )(void * arg );
27
31
28
32
#ifdef __cplusplus
Original file line number Diff line number Diff line change @@ -178,6 +178,7 @@ void UnlockOpenThreadTask(void)
178
178
}
179
179
#endif
180
180
181
+ #if !CONFIG_APP_FABRIC_TABLE_DELEGATE
181
182
class AppFabricTableDelegate : public FabricTable ::Delegate
182
183
{
183
184
void OnFabricRemoved (const FabricTable & fabricTable, FabricIndex fabricIndex)
@@ -206,6 +207,7 @@ class AppFabricTableDelegate : public FabricTable::Delegate
206
207
}
207
208
}
208
209
};
210
+ #endif
209
211
210
212
CHIP_ERROR PlatformManagerImpl::PlatformInit (void )
211
213
{
@@ -294,8 +296,10 @@ CHIP_ERROR PlatformManagerImpl::PlatformInit(void)
294
296
295
297
gExampleDeviceInfoProvider .SetStorageDelegate (&chip::Server::GetInstance ().GetPersistentStorage ());
296
298
299
+ #if !CONFIG_APP_FABRIC_TABLE_DELEGATE
297
300
static AppFabricTableDelegate sAppFabricDelegate ;
298
301
chip::Server::GetInstance ().GetFabricTable ().AddFabricDelegate (&sAppFabricDelegate );
302
+ #endif
299
303
300
304
chip::DeviceLayer::PlatformMgr ().UnlockChipStack ();
301
305
You can’t perform that action at this time.
0 commit comments