Use a default argument in _lcd_move_e

master
Scott Lahteine 8 years ago
parent 374ae6c099
commit 38af251b91

@ -1359,7 +1359,7 @@ void kill_screen(const char* lcd_msg) {
static void lcd_move_z() { _lcd_move_xyz(PSTR(MSG_MOVE_Z), Z_AXIS, sw_endstop_min[Z_AXIS], sw_endstop_max[Z_AXIS]); } static void lcd_move_z() { _lcd_move_xyz(PSTR(MSG_MOVE_Z), Z_AXIS, sw_endstop_min[Z_AXIS], sw_endstop_max[Z_AXIS]); }
static void _lcd_move_e( static void _lcd_move_e(
#if E_MANUAL > 1 #if E_MANUAL > 1
int8_t eindex int8_t eindex=-1
#endif #endif
) { ) {
if (LCD_CLICKED) { lcd_goto_previous_menu(true); return; } if (LCD_CLICKED) { lcd_goto_previous_menu(true); return; }
@ -1437,9 +1437,8 @@ void kill_screen(const char* lcd_msg) {
MENU_ITEM(gcode, MSG_SELECT MSG_E2, PSTR("T1")); MENU_ITEM(gcode, MSG_SELECT MSG_E2, PSTR("T1"));
#endif #endif
#if E_MANUAL == 1
MENU_ITEM(submenu, MSG_MOVE_E, lcd_move_e); MENU_ITEM(submenu, MSG_MOVE_E, lcd_move_e);
#else #if E_MANUAL > 1
MENU_ITEM(submenu, MSG_MOVE_E MSG_MOVE_E1, lcd_move_e0); MENU_ITEM(submenu, MSG_MOVE_E MSG_MOVE_E1, lcd_move_e0);
MENU_ITEM(submenu, MSG_MOVE_E MSG_MOVE_E2, lcd_move_e1); MENU_ITEM(submenu, MSG_MOVE_E MSG_MOVE_E2, lcd_move_e1);
#if E_MANUAL > 2 #if E_MANUAL > 2

Loading…
Cancel
Save