diff --git a/examples/platform/efr32/BaseApplication.cpp b/examples/platform/efr32/BaseApplication.cpp index 66d8cbc0a4efa5..a158c9a687fa99 100644 --- a/examples/platform/efr32/BaseApplication.cpp +++ b/examples/platform/efr32/BaseApplication.cpp @@ -391,7 +391,7 @@ void BaseApplication::ButtonHandler(AppEvent * aEvent) CancelFunctionTimer(); mFunction = kFunction_NoneSelected; -#ifdef DISPLAY_ENABLED +#ifdef QR_CODE_ENABLED // TOGGLE QRCode/LCD demo UI slLCD.ToggleQRCode(); #endif diff --git a/examples/platform/efr32/display/lcd.cpp b/examples/platform/efr32/display/lcd.cpp index 9b66cfe1f024cc..e73770259358e8 100644 --- a/examples/platform/efr32/display/lcd.cpp +++ b/examples/platform/efr32/display/lcd.cpp @@ -122,10 +122,12 @@ int SilabsLCD::Update(void) void SilabsLCD::WriteDemoUI(bool state) { +#ifdef QR_CODE_ENABLED if (mShowQRCode) { mShowQRCode = false; } +#endif dState.mainState = state; WriteDemoUI(); }