From 94298056c78a1c8e2eb118e3eed22b5175416997 Mon Sep 17 00:00:00 2001 From: Junior Martinez Date: Tue, 5 Apr 2022 11:32:31 -0400 Subject: [PATCH] Fix efr32 light-switch-app when build with LCD disabled or with board without LCD support --- 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