|
|
@ -94,14 +94,14 @@ void lcd_move_z() { _lcd_move_xyz(GET_TEXT(MSG_MOVE_Z), Z_AXIS); } |
|
|
|
|
|
|
|
#if E_MANUAL |
|
|
|
|
|
|
|
static void lcd_move_e(TERN_(MULTI_MANUAL, const int8_t eindex=-1)) { |
|
|
|
static void lcd_move_e(TERN_(MULTI_E_MANUAL, const int8_t eindex=-1)) { |
|
|
|
if (ui.use_click()) return ui.goto_previous_screen_no_defer(); |
|
|
|
if (ui.encoderPosition) { |
|
|
|
if (!ui.manual_move.processing) { |
|
|
|
const float diff = float(int32_t(ui.encoderPosition)) * ui.manual_move.menu_scale; |
|
|
|
TERN(IS_KINEMATIC, ui.manual_move.offset, current_position.e) += diff; |
|
|
|
ui.manual_move.soon(E_AXIS |
|
|
|
#if MULTI_MANUAL |
|
|
|
#if MULTI_E_MANUAL |
|
|
|
, eindex |
|
|
|
#endif |
|
|
|
); |
|
|
@ -110,9 +110,9 @@ void lcd_move_z() { _lcd_move_xyz(GET_TEXT(MSG_MOVE_Z), Z_AXIS); } |
|
|
|
ui.encoderPosition = 0; |
|
|
|
} |
|
|
|
if (ui.should_draw()) { |
|
|
|
TERN_(MULTI_MANUAL, MenuItemBase::init(eindex)); |
|
|
|
TERN_(MULTI_E_MANUAL, MenuItemBase::init(eindex)); |
|
|
|
MenuEditItemBase::draw_edit_screen( |
|
|
|
GET_TEXT(TERN(MULTI_MANUAL, MSG_MOVE_EN, MSG_MOVE_E)), |
|
|
|
GET_TEXT(TERN(MULTI_E_MANUAL, MSG_MOVE_EN, MSG_MOVE_E)), |
|
|
|
ftostr41sign(current_position.e |
|
|
|
PLUS_TERN0(IS_KINEMATIC, ui.manual_move.offset) |
|
|
|
MINUS_TERN0(MANUAL_E_MOVES_RELATIVE, manual_move_e_origin) |
|
|
@ -188,7 +188,7 @@ void _menu_move_distance(const AxisEnum axis, const screenFunc_t func, const int |
|
|
|
#if E_MANUAL |
|
|
|
|
|
|
|
inline void _goto_menu_move_distance_e() { |
|
|
|
ui.goto_screen([]{ _menu_move_distance(E_AXIS, []{ lcd_move_e(TERN_(MULTI_MANUAL, active_extruder)); }, -1); }); |
|
|
|
ui.goto_screen([]{ _menu_move_distance(E_AXIS, []{ lcd_move_e(TERN_(MULTI_E_MANUAL, active_extruder)); }, -1); }); |
|
|
|
} |
|
|
|
|
|
|
|
inline void _menu_move_distance_e_maybe() { |
|
|
@ -283,7 +283,7 @@ void menu_move() { |
|
|
|
SUBMENU_MOVE_E(E_MANUAL - 1); |
|
|
|
#endif |
|
|
|
|
|
|
|
#elif MULTI_MANUAL |
|
|
|
#elif MULTI_E_MANUAL |
|
|
|
|
|
|
|
// Independent extruders with one E-stepper per hotend
|
|
|
|
LOOP_L_N(n, E_MANUAL) SUBMENU_MOVE_E(n); |
|
|
|