diff --git a/Marlin/Configuration_adv.h b/Marlin/Configuration_adv.h index 0e42235d6..e2a98248e 100644 --- a/Marlin/Configuration_adv.h +++ b/Marlin/Configuration_adv.h @@ -162,6 +162,9 @@ const int dropsegments=5; //everything with less than this number of steps will // be commented out otherwise #define SDCARDDETECTINVERTED +#ifdef ULTIPANEL + #undef SDCARDDETECTINVERTED +#endif //=========================================================================== //=============================Buffers ============================ //=========================================================================== diff --git a/Marlin/cardreader.cpp b/Marlin/cardreader.cpp index 4a63f727a..c3ee3e212 100644 --- a/Marlin/cardreader.cpp +++ b/Marlin/cardreader.cpp @@ -53,7 +53,7 @@ void CardReader::lsDive(const char *prepend,SdFile parent) while (parent.readDir(p) > 0) { - if( DIR_IS_SUBDIR(&p) && lsAction!=LS_Count && lsAction!=LS_GetFilename) + if( DIR_IS_SUBDIR(&p) && lsAction!=LS_Count && lsAction!=LS_GetFilename) // hence LS_SerialPrint { char path[13*2]; diff --git a/Marlin/cardreader.h b/Marlin/cardreader.h index e56c3a9e6..5c6e29ad8 100644 --- a/Marlin/cardreader.h +++ b/Marlin/cardreader.h @@ -45,7 +45,7 @@ public: bool saving; bool sdprinting ; bool cardOK ; - char filename[11]; + char filename[12]; bool filenameIsDir; int lastnr; //last number of the autostart; private: