From f912a8a36020538714375c14fba1817c69aacf9b Mon Sep 17 00:00:00 2001 From: arun-silabs <141724790+arun-silabs@users.noreply.github.com> Date: Tue, 17 Oct 2023 13:42:50 +0530 Subject: [PATCH] [Silabs][Wifi] Fixed LED0 issue by doing led init after lcd init. (#29793) * Fixed LED0 issue by doing led init after lcd init. * Restyled by clang-format --------- Co-authored-by: Restyled.io --- examples/platform/silabs/BaseApplication.cpp | 9 ++++----- src/platform/silabs/platformAbstraction/WiseMcuSpam.cpp | 1 + 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/platform/silabs/BaseApplication.cpp b/examples/platform/silabs/BaseApplication.cpp index e5b5c0ba58f2a3..083298df1cf72e 100644 --- a/examples/platform/silabs/BaseApplication.cpp +++ b/examples/platform/silabs/BaseApplication.cpp @@ -239,11 +239,6 @@ CHIP_ERROR BaseApplication::Init() SILABS_LOG("Current Software Version String: %s", CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION_STRING); SILABS_LOG("Current Software Version: %d", CHIP_DEVICE_CONFIG_DEVICE_SOFTWARE_VERSION); -#if (defined(ENABLE_WSTK_LEDS) && (defined(SL_CATALOG_SIMPLE_LED_LED1_PRESENT) || defined(SIWX_917))) - LEDWidget::InitGpio(); - sStatusLED.Init(SYSTEM_STATE_LED); -#endif // ENABLE_WSTK_LEDS - #ifdef DIC_ENABLE chip::DeviceLayer::PlatformMgr().AddEventHandler(AppSpecificConnectivityEventCallback, reinterpret_cast(nullptr)); #endif // DIC_ENABLE @@ -251,6 +246,10 @@ CHIP_ERROR BaseApplication::Init() ConfigurationMgr().LogDeviceConfig(); OutputQrCode(true /*refreshLCD at init*/); +#if (defined(ENABLE_WSTK_LEDS) && (defined(SL_CATALOG_SIMPLE_LED_LED1_PRESENT) || defined(SIWX_917))) + LEDWidget::InitGpio(); + sStatusLED.Init(SYSTEM_STATE_LED); +#endif // ENABLE_WSTK_LEDS #ifdef PERFORMANCE_TEST_ENABLED RegisterPerfTestCommands(); diff --git a/src/platform/silabs/platformAbstraction/WiseMcuSpam.cpp b/src/platform/silabs/platformAbstraction/WiseMcuSpam.cpp index b5075514d46dbb..328112fec19de0 100644 --- a/src/platform/silabs/platformAbstraction/WiseMcuSpam.cpp +++ b/src/platform/silabs/platformAbstraction/WiseMcuSpam.cpp @@ -66,6 +66,7 @@ CHIP_ERROR SilabsPlatform::Init(void) void SilabsPlatform::InitLed(void) { // TODO + RSI_Board_Init(); SilabsPlatformAbstractionBase::InitLed(); }