Skip to content

Commit c977e82

Browse files
committed
🎨 MULTI_MANUAL => MULTI_E_MANUAL
1 parent 9878a5a commit c977e82

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

Marlin/src/lcd/marlinui.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ void MarlinUI::quick_feedback(const bool clear_buttons/*=true*/) {
681681
xyze_pos_t ManualMove::all_axes_destination = { 0 };
682682
bool ManualMove::processing = false;
683683
#endif
684-
#if ENABLED(MULTI_MANUAL)
684+
#if ENABLED(MULTI_E_MANUAL)
685685
int8_t ManualMove::e_index = 0;
686686
#endif
687687
AxisEnum ManualMove::axis = NO_AXIS_MASK;
@@ -758,11 +758,11 @@ void MarlinUI::quick_feedback(const bool clear_buttons/*=true*/) {
758758
// Tell ui.update() to start a move to current_position after a short delay.
759759
//
760760
void ManualMove::soon(const AxisEnum move_axis
761-
#if MULTI_MANUAL
761+
#if MULTI_E_MANUAL
762762
, const int8_t eindex/*=-1*/
763763
#endif
764764
) {
765-
#if MULTI_MANUAL
765+
#if MULTI_E_MANUAL
766766
if (move_axis == E_AXIS) e_index = eindex >= 0 ? eindex : active_extruder;
767767
#endif
768768
start_time = millis() + (menu_scale < 0.99f ? 0UL : 250UL); // delay for bigger moves

Marlin/src/lcd/marlinui.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
#endif
4949

5050
#if E_MANUAL > 1
51-
#define MULTI_MANUAL 1
51+
#define MULTI_E_MANUAL 1
5252
#endif
5353

5454
#if HAS_DISPLAY
@@ -129,7 +129,7 @@
129129
class ManualMove {
130130
private:
131131
static AxisEnum axis;
132-
#if MULTI_MANUAL
132+
#if MULTI_E_MANUAL
133133
static int8_t e_index;
134134
#else
135135
static int8_t constexpr e_index = 0;
@@ -183,7 +183,7 @@
183183
#endif
184184
static void task();
185185
static void soon(const AxisEnum axis
186-
#if MULTI_MANUAL
186+
#if MULTI_E_MANUAL
187187
, const int8_t eindex=-1
188188
#endif
189189
);

Marlin/src/lcd/menu/menu_motion.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,14 @@ void lcd_move_z() { _lcd_move_xyz(GET_TEXT(MSG_MOVE_Z), Z_AXIS); }
9494

9595
#if E_MANUAL
9696

97-
static void lcd_move_e(TERN_(MULTI_MANUAL, const int8_t eindex=-1)) {
97+
static void lcd_move_e(TERN_(MULTI_E_MANUAL, const int8_t eindex=-1)) {
9898
if (ui.use_click()) return ui.goto_previous_screen_no_defer();
9999
if (ui.encoderPosition) {
100100
if (!ui.manual_move.processing) {
101101
const float diff = float(int32_t(ui.encoderPosition)) * ui.manual_move.menu_scale;
102102
TERN(IS_KINEMATIC, ui.manual_move.offset, current_position.e) += diff;
103103
ui.manual_move.soon(E_AXIS
104-
#if MULTI_MANUAL
104+
#if MULTI_E_MANUAL
105105
, eindex
106106
#endif
107107
);
@@ -110,9 +110,9 @@ void lcd_move_z() { _lcd_move_xyz(GET_TEXT(MSG_MOVE_Z), Z_AXIS); }
110110
ui.encoderPosition = 0;
111111
}
112112
if (ui.should_draw()) {
113-
TERN_(MULTI_MANUAL, MenuItemBase::init(eindex));
113+
TERN_(MULTI_E_MANUAL, MenuItemBase::init(eindex));
114114
MenuEditItemBase::draw_edit_screen(
115-
GET_TEXT(TERN(MULTI_MANUAL, MSG_MOVE_EN, MSG_MOVE_E)),
115+
GET_TEXT(TERN(MULTI_E_MANUAL, MSG_MOVE_EN, MSG_MOVE_E)),
116116
ftostr41sign(current_position.e
117117
PLUS_TERN0(IS_KINEMATIC, ui.manual_move.offset)
118118
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
188188
#if E_MANUAL
189189

190190
inline void _goto_menu_move_distance_e() {
191-
ui.goto_screen([]{ _menu_move_distance(E_AXIS, []{ lcd_move_e(TERN_(MULTI_MANUAL, active_extruder)); }, -1); });
191+
ui.goto_screen([]{ _menu_move_distance(E_AXIS, []{ lcd_move_e(TERN_(MULTI_E_MANUAL, active_extruder)); }, -1); });
192192
}
193193

194194
inline void _menu_move_distance_e_maybe() {
@@ -283,7 +283,7 @@ void menu_move() {
283283
SUBMENU_MOVE_E(E_MANUAL - 1);
284284
#endif
285285

286-
#elif MULTI_MANUAL
286+
#elif MULTI_E_MANUAL
287287

288288
// Independent extruders with one E-stepper per hotend
289289
LOOP_L_N(n, E_MANUAL) SUBMENU_MOVE_E(n);

Marlin/src/lcd/tft/ui_1024x600.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ static void moveAxis(const AxisEnum axis, const int8_t direction) {
725725
#endif
726726

727727
ui.manual_move.soon(axis
728-
#if MULTI_MANUAL
728+
#if MULTI_E_MANUAL
729729
, motionAxisState.e_selection
730730
#endif
731731
);

Marlin/src/lcd/tft/ui_320x240.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ static void moveAxis(const AxisEnum axis, const int8_t direction) {
710710
#endif
711711

712712
ui.manual_move.soon(axis
713-
#if MULTI_MANUAL
713+
#if MULTI_E_MANUAL
714714
, motionAxisState.e_selection
715715
#endif
716716
);

Marlin/src/lcd/tft/ui_480x320.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ static void moveAxis(const AxisEnum axis, const int8_t direction) {
712712
#endif
713713

714714
ui.manual_move.soon(axis
715-
#if MULTI_MANUAL
715+
#if MULTI_E_MANUAL
716716
, motionAxisState.e_selection
717717
#endif
718718
);

0 commit comments

Comments
 (0)