From 8ebb4dc294059bd2d31f310d7aa588052e52b034 Mon Sep 17 00:00:00 2001
From: Scott Lahteine <github@thinkyhead.com>
Date: Sat, 17 Nov 2018 07:04:27 -0600
Subject: [PATCH] Followup to static CardReader

---
 Marlin/src/lcd/menu/menu_main.cpp | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/Marlin/src/lcd/menu/menu_main.cpp b/Marlin/src/lcd/menu/menu_main.cpp
index 0287036f70..823e0c8b82 100644
--- a/Marlin/src/lcd/menu/menu_main.cpp
+++ b/Marlin/src/lcd/menu/menu_main.cpp
@@ -63,12 +63,6 @@
     ui.return_to_status();
   }
 
-  #if ENABLED(MENU_ADDAUTOSTART)
-
-    inline void lcd_autostart_sd() { card.beginautostart(); }
-
-  #endif
-
 #endif // SDSUPPORT
 
 void menu_tune();
@@ -157,7 +151,7 @@ void menu_main() {
   //
   #if ENABLED(SDSUPPORT) && ENABLED(MENU_ADDAUTOSTART)
     if (!busy)
-      MENU_ITEM(function, MSG_AUTOSTART, lcd_autostart_sd);
+      MENU_ITEM(function, MSG_AUTOSTART, card.beginautostart);
   #endif
 
   END_MENU();
-- 
GitLab