From 70d1d4de5f088b2228e37c01ddc3a73f9f1a2486 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Tue, 29 Mar 2016 03:19:27 -0700 Subject: [PATCH] Small code spacing adjustments --- Marlin/cardreader.cpp | 3 +-- Marlin/cardreader.h | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Marlin/cardreader.cpp b/Marlin/cardreader.cpp index 6410f9f0b..6cb318b70 100644 --- a/Marlin/cardreader.cpp +++ b/Marlin/cardreader.cpp @@ -607,8 +607,7 @@ void CardReader::printingHasFinished() { else { file.close(); sdprinting = false; - if (SD_FINISHED_STEPPERRELEASE) { - //finishAndDisableSteppers(); + if (SD_FINISHED_STEPPERRELEASE) enqueue_and_echo_commands_P(PSTR(SD_FINISHED_RELEASECOMMAND)); autotempShutdown(); } diff --git a/Marlin/cardreader.h b/Marlin/cardreader.h index b86900a66..a18b718b5 100644 --- a/Marlin/cardreader.h +++ b/Marlin/cardreader.h @@ -65,7 +65,6 @@ public: void updir(); void setroot(); - FORCE_INLINE bool isFileOpen() { return file.isOpen(); } FORCE_INLINE bool eof() { return sdpos >= filesize; } FORCE_INLINE int16_t get() { sdpos = file.curPosition(); return (int16_t)file.read(); } @@ -90,9 +89,9 @@ private: uint32_t filespos[SD_PROCEDURE_DEPTH]; char proc_filenames[SD_PROCEDURE_DEPTH][MAXPATHNAMELENGTH]; uint32_t filesize; - millis_t next_autostart_ms; uint32_t sdpos; + millis_t next_autostart_ms; bool autostart_stilltocheck; //the sd start is delayed, because otherwise the serial cannot answer fast enought to make contact with the hostsoftware. LsAction lsAction; //stored for recursion.