From 49791949afb5cc6eb7272650675284039b66a491 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Thu, 18 Dec 2014 03:47:12 -0800 Subject: [PATCH] Wrap call to flush_presort --- Marlin/cardreader.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Marlin/cardreader.cpp b/Marlin/cardreader.cpp index 913a9d1117..d47bdc6da4 100644 --- a/Marlin/cardreader.cpp +++ b/Marlin/cardreader.cpp @@ -211,7 +211,9 @@ void CardReader::startFileprint() if(cardOK) { sdprinting = true; - flush_presort(); + #ifdef SDCARD_SORT_ALPHA + flush_presort(); + #endif } }