diff --git a/Marlin/src/lcd/malyanlcd.cpp b/Marlin/src/lcd/malyanlcd.cpp index da55bc2c3..e912314ac 100644 --- a/Marlin/src/lcd/malyanlcd.cpp +++ b/Marlin/src/lcd/malyanlcd.cpp @@ -42,6 +42,9 @@ */ #include "../inc/MarlinConfig.h" + +#if ENABLED(MALYAN_LCD) + #include "../sd/cardreader.h" #include "../sd/SdFatConfig.h" #include "../module/temperature.h" @@ -57,8 +60,6 @@ #include "../Marlin.h" -#if ENABLED(MALYAN_LCD) - // On the Malyan M200, this will be Serial1. On a RAMPS board, // it might not be. #define LCD_SERIAL Serial1