🚸 Optional X-Axis (#25418)
Co-authored-by: alextrical <35117191+alextrical@users.noreply.github.com> Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
@@ -1903,7 +1903,9 @@ bool Planner::_populate_block(
|
||||
/* <-- add a slash to enable
|
||||
SERIAL_ECHOLNPGM(
|
||||
" _populate_block FR:", fr_mm_s,
|
||||
" A:", target.a, " (", da, " steps)"
|
||||
#if HAS_X_AXIS
|
||||
" A:", target.a, " (", da, " steps)"
|
||||
#endif
|
||||
#if HAS_Y_AXIS
|
||||
" B:", target.b, " (", db, " steps)"
|
||||
#endif
|
||||
@@ -2204,11 +2206,17 @@ bool Planner::_populate_block(
|
||||
|
||||
TERN_(HAS_EXTRUDERS, block->steps.e = esteps);
|
||||
|
||||
block->step_event_count = _MAX(LOGICAL_AXIS_LIST(esteps,
|
||||
block->steps.a, block->steps.b, block->steps.c,
|
||||
block->steps.i, block->steps.j, block->steps.k,
|
||||
block->steps.u, block->steps.v, block->steps.w
|
||||
));
|
||||
block->step_event_count = (
|
||||
#if NUM_AXES
|
||||
_MAX(LOGICAL_AXIS_LIST(esteps,
|
||||
block->steps.a, block->steps.b, block->steps.c,
|
||||
block->steps.i, block->steps.j, block->steps.k,
|
||||
block->steps.u, block->steps.v, block->steps.w
|
||||
))
|
||||
#elif HAS_EXTRUDERS
|
||||
esteps
|
||||
#endif
|
||||
);
|
||||
|
||||
// Bail if this is a zero-length block
|
||||
if (block->step_event_count < MIN_STEPS_PER_SEGMENT) return false;
|
||||
@@ -2474,8 +2482,8 @@ bool Planner::_populate_block(
|
||||
#if ENABLED(LIN_ADVANCE)
|
||||
bool use_advance_lead = false;
|
||||
#endif
|
||||
if (NUM_AXIS_GANG(
|
||||
!block->steps.a, && !block->steps.b, && !block->steps.c,
|
||||
if (true NUM_AXIS_GANG(
|
||||
&& !block->steps.a, && !block->steps.b, && !block->steps.c,
|
||||
&& !block->steps.i, && !block->steps.j, && !block->steps.k,
|
||||
&& !block->steps.u, && !block->steps.v, && !block->steps.w)
|
||||
) { // Is this a retract / recover move?
|
||||
|
Reference in New Issue
Block a user