Skip to content

Commit c36cb50

Browse files
committed
Fix FT_MOTION build with DISTINCT_E_FACTORS: refer to stepper to access current_block
1 parent a22155b commit c36cb50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Marlin/src/module/ft_motion.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ void FTMotion::convertToSteps(const uint32_t idx) {
762762
#if ENABLED(STEPS_ROUNDING)
763763
#define TOSTEPS(A,B) int32_t(trajMod.A[idx] * planner.settings.axis_steps_per_mm[B] + (trajMod.A[idx] < 0.0f ? -0.5f : 0.5f))
764764
const xyze_long_t steps_tar = LOGICAL_AXIS_ARRAY(
765-
TOSTEPS(e, E_AXIS_N(current_block->extruder)), // May be eliminated if guaranteed positive.
765+
TOSTEPS(e, E_AXIS_N(stepper.current_block->extruder)), // May be eliminated if guaranteed positive.
766766
TOSTEPS(x, X_AXIS), TOSTEPS(y, Y_AXIS), TOSTEPS(z, Z_AXIS),
767767
TOSTEPS(i, I_AXIS), TOSTEPS(j, J_AXIS), TOSTEPS(k, K_AXIS),
768768
TOSTEPS(u, U_AXIS), TOSTEPS(v, V_AXIS), TOSTEPS(w, W_AXIS)
@@ -771,7 +771,7 @@ void FTMotion::convertToSteps(const uint32_t idx) {
771771
#else
772772
#define TOSTEPS(A,B) int32_t(trajMod.A[idx] * planner.settings.axis_steps_per_mm[B]) - steps.A
773773
xyze_long_t delta = LOGICAL_AXIS_ARRAY(
774-
TOSTEPS(e, E_AXIS_N(current_block->extruder)),
774+
TOSTEPS(e, E_AXIS_N(stepper.current_block->extruder)),
775775
TOSTEPS(x, X_AXIS), TOSTEPS(y, Y_AXIS), TOSTEPS(z, Z_AXIS),
776776
TOSTEPS(i, I_AXIS), TOSTEPS(j, J_AXIS), TOSTEPS(k, K_AXIS),
777777
TOSTEPS(u, U_AXIS), TOSTEPS(v, V_AXIS), TOSTEPS(w, W_AXIS)

0 commit comments

Comments
 (0)