From b99f6c62a576749905e012365b4df2a6ca2e1136 Mon Sep 17 00:00:00 2001 From: mkardous-silabs <84793247+mkardous-silabs@users.noreply.github.com> Date: Thu, 25 Apr 2024 20:43:02 -0400 Subject: [PATCH] Add missing define check for LCD calls (#33180) --- examples/lit-icd-app/silabs/src/AppTask.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/lit-icd-app/silabs/src/AppTask.cpp b/examples/lit-icd-app/silabs/src/AppTask.cpp index 0fb98266d2a81d..0f330e700b9548 100644 --- a/examples/lit-icd-app/silabs/src/AppTask.cpp +++ b/examples/lit-icd-app/silabs/src/AppTask.cpp @@ -170,11 +170,15 @@ void AppTask::ButtonEventHandler(uint8_t button, uint8_t btnAction) // DO NOT COPY for product logic. LIT ICD app is a test app with very simple application logic to enable testing. void AppTask::OnEnterActiveMode() { +#ifdef DISPLAY_ENABLED sAppTask.GetLCD().WriteDemoUI(true); +#endif } // DO NOT COPY for product logic. LIT ICD app is a test app with very simple application logic to enable testing. void AppTask::OnEnterIdleMode() { +#ifdef DISPLAY_ENABLED sAppTask.GetLCD().WriteDemoUI(false); +#endif }