Skip to content

Commit

Permalink
[Silabs][Wifi] Fixed LED0 issue by doing led init after lcd init. (#2…
Browse files Browse the repository at this point in the history
…9793)

* Fixed LED0 issue by doing led init after lcd init.

* Restyled by clang-format

---------

Co-authored-by: Restyled.io <[email protected]>
  • Loading branch information
arun-silabs and restyled-commits authored Oct 17, 2023
1 parent 73b400d commit 8e53b02
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
9 changes: 4 additions & 5 deletions examples/platform/silabs/BaseApplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -239,18 +239,17 @@ 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<intptr_t>(nullptr));
#endif // DIC_ENABLE

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();
Expand Down
1 change: 1 addition & 0 deletions src/platform/silabs/platformAbstraction/WiseMcuSpam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ CHIP_ERROR SilabsPlatform::Init(void)
void SilabsPlatform::InitLed(void)
{
// TODO
RSI_Board_Init();
SilabsPlatformAbstractionBase::InitLed();
}

Expand Down

0 comments on commit 8e53b02

Please sign in to comment.