Fix manual moves for switching tools (#10867)

This commit is contained in:
Scott Lahteine 2018-05-26 18:30:29 -05:00 committed by GitHub
parent a07433f1cc
commit 9186123676
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 29 additions and 15 deletions

View File

@ -408,10 +408,8 @@
#if ENABLED(SWITCHING_EXTRUDER) // One stepper for every two EXTRUDERS
#if EXTRUDERS > 4
#define E_STEPPERS 3
#define E_MANUAL 3
#elif EXTRUDERS > 2
#define E_STEPPERS 2
#define E_MANUAL 2
#else
#define E_STEPPERS 1
#endif

View File

@ -3249,6 +3249,20 @@ void lcd_quick_feedback(const bool clear_buttons) {
#endif
#if ENABLED(SWITCHING_EXTRUDER) || ENABLED(SWITCHING_NOZZLE)
// Only the current...
MENU_ITEM(submenu, MSG_MOVE_E, lcd_move_get_e_amount);
// ...and the non-switching
#if E_MANUAL == 5
MENU_ITEM(submenu, MSG_MOVE_E MSG_MOVE_E5, lcd_move_get_e4_amount);
#elif E_MANUAL == 3
MENU_ITEM(submenu, MSG_MOVE_E MSG_MOVE_E3, lcd_move_get_e2_amount);
#endif
#else
// Independent extruders with one E-stepper per hotend
MENU_ITEM(submenu, MSG_MOVE_E, lcd_move_get_e_amount);
#if E_MANUAL > 1
MENU_ITEM(submenu, MSG_MOVE_E MSG_MOVE_E1, lcd_move_get_e0_amount);
@ -3264,6 +3278,8 @@ void lcd_quick_feedback(const bool clear_buttons) {
#endif // E_MANUAL > 2
#endif // E_MANUAL > 1
#endif
END_MENU();
}