Quellcode durchsuchen

Small code spacing adjustments

Scott Lahteine vor 8 Jahren
Ursprung
Commit
70d1d4de5f
2 geänderte Dateien mit 2 neuen und 4 gelöschten Zeilen
  1. 1
    2
      Marlin/cardreader.cpp
  2. 1
    2
      Marlin/cardreader.h

+ 1
- 2
Marlin/cardreader.cpp Datei anzeigen

@@ -607,8 +607,7 @@ void CardReader::printingHasFinished() {
607 607
   else {
608 608
     file.close();
609 609
     sdprinting = false;
610
-    if (SD_FINISHED_STEPPERRELEASE) {
611
-      //finishAndDisableSteppers();
610
+    if (SD_FINISHED_STEPPERRELEASE)
612 611
       enqueue_and_echo_commands_P(PSTR(SD_FINISHED_RELEASECOMMAND));
613 612
     autotempShutdown();
614 613
   }

+ 1
- 2
Marlin/cardreader.h Datei anzeigen

@@ -65,7 +65,6 @@ public:
65 65
   void updir();
66 66
   void setroot();
67 67
 
68
-
69 68
   FORCE_INLINE bool isFileOpen() { return file.isOpen(); }
70 69
   FORCE_INLINE bool eof() { return sdpos >= filesize; }
71 70
   FORCE_INLINE int16_t get() { sdpos = file.curPosition(); return (int16_t)file.read(); }
@@ -90,9 +89,9 @@ private:
90 89
   uint32_t filespos[SD_PROCEDURE_DEPTH];
91 90
   char proc_filenames[SD_PROCEDURE_DEPTH][MAXPATHNAMELENGTH];
92 91
   uint32_t filesize;
93
-  millis_t next_autostart_ms;
94 92
   uint32_t sdpos;
95 93
 
94
+  millis_t next_autostart_ms;
96 95
   bool autostart_stilltocheck; //the sd start is delayed, because otherwise the serial cannot answer fast enought to make contact with the hostsoftware.
97 96
 
98 97
   LsAction lsAction; //stored for recursion.

Laden…
Abbrechen
Speichern