Skip to content

Commit

Permalink
silabs_fix_lighting_app_lcd
Browse files Browse the repository at this point in the history
  • Loading branch information
jepenven-silabs committed Jan 26, 2023
1 parent 09ea936 commit 711f6bc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
14 changes: 14 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,20 @@ 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 SL_WIFI
if (!ConnectivityMgr().IsWiFiStationProvisioned())
#else
if (!ConnectivityMgr().IsThreadProvisioned())
#endif /* !SL_WIFI */
{
GetLCD().ShowQRCode(true, true);
}

#endif

return err;
}

Expand Down
1 change: 0 additions & 1 deletion examples/platform/silabs/efr32/BaseApplication.cpp
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,6 @@ CHIP_ERROR BaseApplication::Init(Identify * identifyObj)
// Print setup info on LCD if available
#ifdef QR_CODE_ENABLED
slLCD.SetQRCode((uint8_t *) QRCode.data(), QRCode.size());
slLCD.ShowQRCode(true, true);
#else
PrintQrCodeURL(QRCode);
#endif // QR_CODE_ENABLED
Expand Down

0 comments on commit 711f6bc

Please sign in to comment.