Skip to content

Commit

Permalink
[SL-TEMP] Bugfix temporary em req removal (#43)
Browse files Browse the repository at this point in the history
* Added the temporary fix to remove ot em1

commit a1b548882d3c5988048ea98b85b6558210181550
Author: lpbeliveau-silabs <[email protected]>
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
  • Loading branch information
lpbeliveau-silabs authored Oct 9, 2024
1 parent 4fca887 commit a0845c8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions examples/platform/silabs/MatterConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,13 @@ static chip::DeviceLayer::Internal::Efr32PsaOperationalKeystore gOperationalKeys

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

#if CHIP_ENABLE_OPENTHREAD && (SL_MATTER_GN_BUILD == 0)
// SLC-FIX
// TODO: Remove the Power Manager include when OT does not add an EM1 req at init
#define CURRENT_MODULE_NAME "OPENTHREAD"
#include "sl_power_manager.h"
#endif

/**********************************************************
* Defines
*********************************************************/
Expand Down Expand Up @@ -183,6 +190,12 @@ void ApplicationStart(void * unused)

void SilabsMatterConfig::AppInit()
{
#if CHIP_ENABLE_OPENTHREAD && (SL_MATTER_GN_BUILD == 0)
// SLC-FIX
// TODO: Remove the Power Manager remove req when OT does not add an EM1 req at init
sl_power_manager_remove_em_requirement(SL_POWER_MANAGER_EM1);
#endif

GetPlatform().Init();
sMainTaskHandle = osThreadNew(ApplicationStart, nullptr, &kMainTaskAttr);
SILABS_LOG("Starting scheduler");
Expand Down

0 comments on commit a0845c8

Please sign in to comment.