🐛 FT Motion - Set moving_axis_flag for each block (#28214)

This commit is contained in:
narno2202
2025-12-11 22:33:35 +01:00
committed by GitHub
parent 9eb82d8894
commit 4cd972c3bb

View File

@@ -185,10 +185,7 @@ void FTMotion::loop() {
}
// Set busy status for use by planner.busy()
const bool oldBusy = busy;
busy = stepping.is_busy();
if (oldBusy && !busy) moving_axis_flags.reset();
}
#if HAS_FTM_SHAPING
@@ -383,12 +380,8 @@ bool FTMotion::plan_next_block() {
TERN_(FTM_HAS_LIN_ADVANCE, use_advance_lead = current_block->use_advance_lead);
#define _SET_MOVE_END(A) do{ \
if (moveDist.A) { \
moving_axis_flags.A = true; \
axis_move_dir.A = moveDist.A > 0; \
} \
}while(0);
axis_move_dir = current_block->direction_bits;
#define _SET_MOVE_END(A) moving_axis_flags.A = moveDist.A ? true : false;
LOGICAL_AXIS_MAP(_SET_MOVE_END);