lcd_autostart_sd() has two conditions.
got: ultralcd.cpp:408: warning: 'void lcd_autostart_sd()' defined but not used
This commit is contained in:
parent
f5f99c4883
commit
5099b86ad4
1 changed files with 3 additions and 5 deletions
|
@ -402,7 +402,7 @@ static void lcd_main_menu() {
|
||||||
END_MENU();
|
END_MENU();
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef SDSUPPORT
|
#if defined( SDSUPPORT ) && defined( MENU_ADDAUTOSTART )
|
||||||
static void lcd_autostart_sd() {
|
static void lcd_autostart_sd() {
|
||||||
card.autostart_index = 0;
|
card.autostart_index = 0;
|
||||||
card.setroot();
|
card.setroot();
|
||||||
|
@ -587,11 +587,9 @@ void lcd_cooldown() {
|
||||||
static void lcd_prepare_menu() {
|
static void lcd_prepare_menu() {
|
||||||
START_MENU();
|
START_MENU();
|
||||||
MENU_ITEM(back, MSG_MAIN, lcd_main_menu);
|
MENU_ITEM(back, MSG_MAIN, lcd_main_menu);
|
||||||
#ifdef SDSUPPORT
|
#if defined( SDSUPPORT ) && defined( MENU_ADDAUTOSTART )
|
||||||
#ifdef MENU_ADDAUTOSTART
|
|
||||||
MENU_ITEM(function, MSG_AUTOSTART, lcd_autostart_sd);
|
MENU_ITEM(function, MSG_AUTOSTART, lcd_autostart_sd);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
MENU_ITEM(gcode, MSG_DISABLE_STEPPERS, PSTR("M84"));
|
MENU_ITEM(gcode, MSG_DISABLE_STEPPERS, PSTR("M84"));
|
||||||
MENU_ITEM(gcode, MSG_AUTO_HOME, PSTR("G28"));
|
MENU_ITEM(gcode, MSG_AUTO_HOME, PSTR("G28"));
|
||||||
MENU_ITEM(function, MSG_SET_HOME_OFFSETS, lcd_set_home_offsets);
|
MENU_ITEM(function, MSG_SET_HOME_OFFSETS, lcd_set_home_offsets);
|
||||||
|
|
Reference in a new issue