Skip to content

Commit

Permalink
Fix init order (#25192)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkardous-silabs authored and pull[bot] committed Aug 25, 2023
1 parent 15682e3 commit 1596724
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/platform/silabs/SiWx917/matter_config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,6 @@ CHIP_ERROR SI917MatterConfig::InitMatter(const char * appName)
#ifdef HEAP_MONITORING
MemMonitoring::startHeapMonitoring();
#endif
SetDeviceInstanceInfoProvider(&EFR32::EFR32DeviceDataProvider::GetDeviceDataProvider());
SetCommissionableDataProvider(&EFR32::EFR32DeviceDataProvider::GetDeviceDataProvider());

//==============================================
// Init Matter Stack
Expand All @@ -115,6 +113,9 @@ CHIP_ERROR SI917MatterConfig::InitMatter(const char * appName)
}
ReturnErrorOnFailure(PlatformMgr().InitChipStack());

SetDeviceInstanceInfoProvider(&EFR32::EFR32DeviceDataProvider::GetDeviceDataProvider());
SetCommissionableDataProvider(&EFR32::EFR32DeviceDataProvider::GetDeviceDataProvider());

chip::DeviceLayer::ConnectivityMgr().SetBLEDeviceName(appName);

// Stop Matter event handling while setting up resources
Expand Down

0 comments on commit 1596724

Please sign in to comment.