Skip to content

Commit f0f7ec8

Browse files
committed
πŸ§‘β€πŸ’» Stepper::set_directions() => apply_directions()
1 parent 921591d commit f0f7ec8

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

β€ŽMarlin/src/feature/bedlevel/bdl/bdl.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ void BDS_Leveling::process() {
110110
}
111111
else {
112112
babystep.set_mm(Z_AXIS, 0); //if (old_cur_z <= cur_z) Z_DIR_WRITE(INVERT_DIR(Z, HIGH));
113-
stepper.set_directions();
113+
stepper.apply_directions();
114114
}
115115
#endif
116116
old_cur_z = cur_z;
@@ -119,7 +119,7 @@ void BDS_Leveling::process() {
119119
//endstops.update();
120120
}
121121
else
122-
stepper.set_directions();
122+
stepper.apply_directions();
123123

124124
#if ENABLED(DEBUG_OUT_BD)
125125
SERIAL_ECHOLNPGM("BD:", tmp & 0x3FF, ", Z:", cur_z, "|", current_position.z);

β€ŽMarlin/src/module/motion.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -1419,13 +1419,13 @@ float get_move_distance(const xyze_pos_t &diff OPTARG(HAS_ROTATIONAL_AXES, bool
14191419

14201420
void idex_set_mirrored_mode(const bool mirr) {
14211421
idex_mirrored_mode = mirr;
1422-
stepper.set_directions();
1422+
stepper.apply_directions();
14231423
}
14241424

14251425
void set_duplication_enabled(const bool dupe, const int8_t tool_index/*=-1*/) {
14261426
extruder_duplication_enabled = dupe;
14271427
if (tool_index >= 0) active_extruder = tool_index;
1428-
stepper.set_directions();
1428+
stepper.apply_directions();
14291429
}
14301430

14311431
void idex_set_parked(const bool park/*=true*/) {
@@ -1471,7 +1471,7 @@ float get_move_distance(const xyze_pos_t &diff OPTARG(HAS_ROTATIONAL_AXES, bool
14711471
line_to_current_position(fr_zfast);
14721472
}
14731473
}
1474-
stepper.set_directions();
1474+
stepper.apply_directions();
14751475

14761476
idex_set_parked(false);
14771477
if (DEBUGGING(LEVELING)) DEBUG_ECHOLNPGM("idex_set_parked(false)");

β€ŽMarlin/src/module/stepper.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ void Stepper::disable_all_steppers() {
608608
* COREXZ: X_AXIS=A_AXIS and Z_AXIS=C_AXIS
609609
* COREYZ: Y_AXIS=B_AXIS and Z_AXIS=C_AXIS
610610
*/
611-
void Stepper::set_directions() {
611+
void Stepper::apply_directions() {
612612

613613
DIR_WAIT_BEFORE();
614614

β€ŽMarlin/src/module/stepper.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -814,12 +814,12 @@ class Stepper {
814814
static void disable_all_steppers();
815815

816816
// Update direction states for all steppers
817-
static void set_directions();
817+
static void apply_directions();
818818

819819
// Set direction bits and update all stepper DIR states
820820
static void set_directions(const axis_bits_t bits) {
821821
last_direction_bits = bits;
822-
set_directions();
822+
apply_directions();
823823
}
824824

825825
#if ENABLED(FT_MOTION)

β€ŽMarlin/src/module/stepper/trinamic.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,7 @@ void reset_trinamic_drivers() {
10101010
TMC_ADV()
10111011
#endif
10121012

1013-
stepper.set_directions();
1013+
stepper.apply_directions();
10141014
}
10151015

10161016
// TMC Slave Address Conflict Detection

β€ŽMarlin/src/module/tool_change.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,7 @@ void fast_line_to_current(const AxisEnum fr_axis) { _line_to_current(fr_axis, 0.
880880
}
881881

882882
// Ensure X axis DIR pertains to the correct carriage
883-
stepper.set_directions();
883+
stepper.apply_directions();
884884

885885
DEBUG_ECHOLNPGM("Active extruder parked: ", active_extruder_parked ? "yes" : "no");
886886
DEBUG_POS("New extruder (parked)", current_position);

0 commit comments

Comments
Β (0)