Skip to content

Commit

Permalink
silabs_fix_lighting_app_lcd (project-chip#24661)
Browse files Browse the repository at this point in the history
  • Loading branch information
jepenven-silabs authored and David Lechner committed Mar 22, 2023
1 parent 2907a19 commit f856e41
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
15 changes: 15 additions & 0 deletions examples/lighting-app/silabs/efr32/src/AppTask.cpp
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,21 @@ CHIP_ERROR AppTask::Init()
sLightLED.Set(LightMgr().IsLightOn());
#endif // ENABLE_WSTK_LEDS

// Update the LCD with the Stored value. Show QR Code if not provisioned
#ifdef DISPLAY_ENABLED
GetLCD().WriteDemoUI(LightMgr().IsLightOn());
#ifdef QR_CODE_ENABLED
#ifdef SL_WIFI
if (!ConnectivityMgr().IsWiFiStationProvisioned())
#else
if (!ConnectivityMgr().IsThreadProvisioned())
#endif /* !SL_WIFI */
{
GetLCD().ShowQRCode(true, true);
}
#endif // QR_CODE_ENABLED
#endif

return err;
}

Expand Down
15 changes: 15 additions & 0 deletions examples/lock-app/silabs/efr32/src/AppTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,21 @@ CHIP_ERROR AppTask::Init()
sLockLED.Set(state.Value() == DlLockState::kUnlocked);
#endif // ENABLE_WSTK_LEDS

// Update the LCD with the Stored value. Show QR Code if not provisioned
#ifdef DISPLAY_ENABLED
GetLCD().WriteDemoUI(state.Value() != DlLockState::kUnlocked);
#ifdef QR_CODE_ENABLED
#ifdef SL_WIFI
if (!ConnectivityMgr().IsWiFiStationProvisioned())
#else
if (!ConnectivityMgr().IsThreadProvisioned())
#endif /* !SL_WIFI */
{
GetLCD().ShowQRCode(true, true);
}
#endif // QR_CODE_ENABLED
#endif

chip::DeviceLayer::PlatformMgr().ScheduleWork(UpdateClusterState, reinterpret_cast<intptr_t>(nullptr));

ConfigurationMgr().LogDeviceConfig();
Expand Down
Empty file modified examples/platform/silabs/efr32/BaseApplication.cpp
100644 → 100755
Empty file.

0 comments on commit f856e41

Please sign in to comment.