Skip to content

Commit

Permalink
Modified type conversion from (uint8_t *) to Uint8::from_char as ment…
Browse files Browse the repository at this point in the history
…ioned in comments
  • Loading branch information
arun-silabs committed Oct 12, 2023
1 parent 4ba6660 commit 3c1d13b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/window-app/silabs/src/WindowManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,6 @@ void WindowManager::UpdateLCD()
#if CHIP_ENABLE_OPENTHREAD
if (mState.isThreadProvisioned)
#else
// if (mState.isWiFiProvisioned)
if (ConnectivityMgr().IsWiFiStationProvisioned())
#endif // CHIP_ENABLE_OPENTHREAD
{
Expand All @@ -751,7 +750,7 @@ void WindowManager::UpdateLCD()
chip::MutableCharSpan qrCode(mQRCodeBuffer);
if (GetQRCode(qrCode, chip::RendezvousInformationFlags(chip::RendezvousInformationFlag::kBLE)) == CHIP_NO_ERROR)
{
slLCD.SetQRCode((uint8_t *) qrCode.data(), qrCode.size());
slLCD.SetQRCode(Uint8::from_char(qrCode.data()), qrCode.size());
slLCD.ShowQRCode(true);
}
}
Expand Down

0 comments on commit 3c1d13b

Please sign in to comment.