Browse Source

Merge pull request #1637 from AnHardt/warning3

lcd_autostart_sd() has two conditions.
pull/1/head
Scott Lahteine 10 years ago
parent
commit
8d396584bf
  1. 6
      Marlin/ultralcd.cpp

6
Marlin/ultralcd.cpp

@ -402,7 +402,7 @@ static void lcd_main_menu() {
END_MENU();
}
#ifdef SDSUPPORT
#if defined( SDSUPPORT ) && defined( MENU_ADDAUTOSTART )
static void lcd_autostart_sd() {
card.autostart_index = 0;
card.setroot();
@ -587,11 +587,9 @@ void lcd_cooldown() {
static void lcd_prepare_menu() {
START_MENU();
MENU_ITEM(back, MSG_MAIN, lcd_main_menu);
#ifdef SDSUPPORT
#ifdef MENU_ADDAUTOSTART
#if defined( SDSUPPORT ) && defined( MENU_ADDAUTOSTART )
MENU_ITEM(function, MSG_AUTOSTART, lcd_autostart_sd);
#endif
#endif
MENU_ITEM(gcode, MSG_DISABLE_STEPPERS, PSTR("M84"));
MENU_ITEM(gcode, MSG_AUTO_HOME, PSTR("G28"));
MENU_ITEM(function, MSG_SET_HOME_OFFSETS, lcd_set_home_offsets);

Loading…
Cancel
Save