🐛 Fix FT Motion TMC2208 shutdown (2)

Followup to #28257
This commit is contained in:
Scott Lahteine
2026-01-11 01:05:53 -06:00
parent 6ec2a395e1
commit 3bf6b3dee9

View File

@@ -627,7 +627,7 @@ void FTMotion::fill_stepper_plan_buffer() {
// hold that axis' trajectory coordinate constant for at least 750µs.
#define DIR_FLIP_HOLD_S 0.000'750f
static constexpr uint32_t dir_flip_hold_frames = DIR_FLIP_HOLD_S / (FTM_TS + 1);
static constexpr uint32_t dir_flip_hold_frames = 1 + (DIR_FLIP_HOLD_S) / (FTM_TS);
auto start_hold_if_dir_flip = [&](const AxisEnum a) {
const bool dir = traj_coords[a] > last_target_traj[a],