From 3787857211f6b434a07ea7b17e431823a9768614 Mon Sep 17 00:00:00 2001 From: jmartinez-silabs <67972863+jmartinez-silabs@users.noreply.github.com> Date: Tue, 5 Apr 2022 15:09:35 -0400 Subject: [PATCH] Fix efr32 light-switch-app when build with LCD disabled or with board without LCD support (#17067) --- examples/light-switch-app/efr32/src/AppTask.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/light-switch-app/efr32/src/AppTask.cpp b/examples/light-switch-app/efr32/src/AppTask.cpp index abc097b801f3ea..ea6ce7073eb128 100644 --- a/examples/light-switch-app/efr32/src/AppTask.cpp +++ b/examples/light-switch-app/efr32/src/AppTask.cpp @@ -22,9 +22,13 @@ #include "AppEvent.h" #include "LEDWidget.h" #include "binding-handler.h" +#include "sl_simple_led_instances.h" + +#ifdef DISPLAY_ENABLED #include "lcd.h" #include "qrcodegen.h" -#include "sl_simple_led_instances.h" +#endif // DISPLAY_ENABLED + #include #include #include