Skip to content

Commit

Permalink
Fix a bug in traj / trajmod copy when FTM_UNIFIED_BWS is not set, rem…
Browse files Browse the repository at this point in the history
…ove an unecessary variable init.
  • Loading branch information
narno2202 committed Apr 8, 2024
1 parent 5ab198b commit 794a4b3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Marlin/src/module/ft_motion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ void FTMotion::loop() {
if (sts_stepperBusy) return; // Wait until motion buffers are emptied
discard_planner_block_protected();
reset();
blockProcRdy = false; // Set queueing to look for next block.
stepper.abort_current_block = false; // Abort finished.
}

Expand Down Expand Up @@ -200,7 +199,7 @@ void FTMotion::loop() {
LOGICAL_AXIS_MAP_LC(TCOPY);

// Shift the time series back in the window
#define TSHIFT(A) memcpy(traj.A, &traj.A[FTM_BATCH_SIZE], last_batchIdx * sizeof(traj.A[0]));
#define TSHIFT(A) memcpy(traj.A, &traj.A[FTM_BATCH_SIZE], BATCH_SIDX_IN_WINDOW * sizeof(traj.A[0]));
LOGICAL_AXIS_MAP_LC(TSHIFT);
#endif

Expand Down

0 comments on commit 794a4b3

Please sign in to comment.