Browse Source

Move lcd_autostart_sd to its logical place

Scott Lahteine 9 years ago
parent
commit
6730408ec1
1 changed files with 9 additions and 7 deletions
  1. 9
    7
      Marlin/ultralcd.cpp

+ 9
- 7
Marlin/ultralcd.cpp View File

@@ -528,13 +528,6 @@ static void lcd_main_menu() {
528 528
   END_MENU();
529 529
 }
530 530
 
531
-#if ENABLED(SDSUPPORT) && ENABLED(MENU_ADDAUTOSTART)
532
-  static void lcd_autostart_sd() {
533
-    card.autostart_index = 0;
534
-    card.setroot();
535
-    card.checkautostart(true);
536
-  }
537
-#endif
538 531
 
539 532
 /**
540 533
  * Set the home offset based on the current_position
@@ -850,6 +843,15 @@ void lcd_cooldown() {
850 843
   lcd_return_to_status();
851 844
 }
852 845
 
846
+#if ENABLED(SDSUPPORT) && ENABLED(MENU_ADDAUTOSTART)
847
+
848
+  static void lcd_autostart_sd() {
849
+    card.autostart_index = 0;
850
+    card.setroot();
851
+    card.checkautostart(true);
852
+  }
853
+
854
+#endif
853 855
 /**
854 856
  *
855 857
  * "Prepare" submenu

Loading…
Cancel
Save