Skip to content

Commit

Permalink
embedding ok?
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed May 24, 2021
1 parent a181f80 commit 1932687
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions Marlin/src/module/planner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2365,20 +2365,20 @@ bool Planner::_populate_block(block_t * const block, bool split_move,

// Limit acceleration per axis
if (block->step_event_count <= acceleration_long_cutoff) {
LIMIT_ACCEL_LONG(A_AXIS, 0);
LIMIT_ACCEL_LONG(B_AXIS, 0);
LIMIT_ACCEL_LONG(C_AXIS, 0);
#if HAS_EXTRUDERS
LIMIT_ACCEL_LONG(E_AXIS, E_INDEX_N(extruder));
#endif
LOGICAL_AXIS_CODE(
LIMIT_ACCEL_LONG(E_AXIS, E_INDEX_N(extruder)),
LIMIT_ACCEL_LONG(A_AXIS, 0),
LIMIT_ACCEL_LONG(B_AXIS, 0),
LIMIT_ACCEL_LONG(C_AXIS, 0)
);
}
else {
LIMIT_ACCEL_FLOAT(A_AXIS, 0);
LIMIT_ACCEL_FLOAT(B_AXIS, 0);
LIMIT_ACCEL_FLOAT(C_AXIS, 0);
#if HAS_EXTRUDERS
LIMIT_ACCEL_FLOAT(E_AXIS, E_INDEX_N(extruder));
#endif
LOGICAL_AXIS_CODE(
LIMIT_ACCEL_FLOAT(E_AXIS, E_INDEX_N(extruder)),
LIMIT_ACCEL_FLOAT(A_AXIS, 0),
LIMIT_ACCEL_FLOAT(B_AXIS, 0),
LIMIT_ACCEL_FLOAT(C_AXIS, 0)
);
}
}
block->acceleration_steps_per_s2 = accel;
Expand Down

0 comments on commit 1932687

Please sign in to comment.