diff --git a/ports/stm32/boards/Passport/framebuffer.h b/ports/stm32/boards/Passport/framebuffer.h index 758170195..1b30dba8d 100644 --- a/ports/stm32/boards/Passport/framebuffer.h +++ b/ports/stm32/boards/Passport/framebuffer.h @@ -7,7 +7,9 @@ #include +#ifdef SCREEN_MODE_COLOR #include "lvgl.h" +#endif #if defined(SCREEN_MODE_MONO) && defined(SCREEN_MODE_COLOR) #error "SCREEN_MODE_MONO and SCREEN_MODE_COLOR cannot be used at the same time"