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