Skip to content

Commit a0845c8

Browse files
[SL-TEMP] Bugfix temporary em req removal (project-chip#43)
* Added the temporary fix to remove ot em1 commit a1b548882d3c5988048ea98b85b6558210181550 Author: lpbeliveau-silabs <louis-philip.beliveau@silabs.com> Date: Thu Oct 3 17:48:35 2024 -0400 Added the line to disable the em1 req from OT Moved the EM req requirement removal to AppInit * Added ifdef to ignore fix on gn builds
1 parent 4fca887 commit a0845c8

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

examples/platform/silabs/MatterConfig.cpp

+13
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,13 @@ static chip::DeviceLayer::Internal::Efr32PsaOperationalKeystore gOperationalKeys
7979

8080
#include <platform/silabs/platformAbstraction/SilabsPlatform.h>
8181

82+
#if CHIP_ENABLE_OPENTHREAD && (SL_MATTER_GN_BUILD == 0)
83+
// SLC-FIX
84+
// TODO: Remove the Power Manager include when OT does not add an EM1 req at init
85+
#define CURRENT_MODULE_NAME "OPENTHREAD"
86+
#include "sl_power_manager.h"
87+
#endif
88+
8289
/**********************************************************
8390
* Defines
8491
*********************************************************/
@@ -183,6 +190,12 @@ void ApplicationStart(void * unused)
183190

184191
void SilabsMatterConfig::AppInit()
185192
{
193+
#if CHIP_ENABLE_OPENTHREAD && (SL_MATTER_GN_BUILD == 0)
194+
// SLC-FIX
195+
// TODO: Remove the Power Manager remove req when OT does not add an EM1 req at init
196+
sl_power_manager_remove_em_requirement(SL_POWER_MANAGER_EM1);
197+
#endif
198+
186199
GetPlatform().Init();
187200
sMainTaskHandle = osThreadNew(ApplicationStart, nullptr, &kMainTaskAttr);
188201
SILABS_LOG("Starting scheduler");

0 commit comments

Comments
 (0)