Skip to content

Commit 3bf6b3d

Browse files
committed
🐛 Fix FT Motion TMC2208 shutdown (2)
Followup to MarlinFirmware#28257
1 parent 6ec2a39 commit 3bf6b3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Marlin/src/module/ft_motion.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ void FTMotion::fill_stepper_plan_buffer() {
627627
// hold that axis' trajectory coordinate constant for at least 750µs.
628628

629629
#define DIR_FLIP_HOLD_S 0.000'750f
630-
static constexpr uint32_t dir_flip_hold_frames = DIR_FLIP_HOLD_S / (FTM_TS + 1);
630+
static constexpr uint32_t dir_flip_hold_frames = 1 + (DIR_FLIP_HOLD_S) / (FTM_TS);
631631

632632
auto start_hold_if_dir_flip = [&](const AxisEnum a) {
633633
const bool dir = traj_coords[a] > last_target_traj[a],

0 commit comments

Comments
 (0)