Skip to content

Commit

Permalink
πŸ§‘β€πŸ’» Dir change is AxisBits
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead authored and Andy-Big committed Jul 19, 2023
1 parent 4a7d34c commit 8c252b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Marlin/src/module/planner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2424,8 +2424,8 @@ bool Planner::_populate_block(
xs2 = xs1; xs1 = xs0;
ys2 = ys1; ys1 = ys0;
}
xs0 = TEST(direction_change, X_AXIS) ? segment_time_us : xy_freq_min_interval_us;
ys0 = TEST(direction_change, Y_AXIS) ? segment_time_us : xy_freq_min_interval_us;
xs0 = direction_change.x ? segment_time_us : xy_freq_min_interval_us;
ys0 = direction_change.y ? segment_time_us : xy_freq_min_interval_us;

if (segment_time_us < xy_freq_min_interval_us) {
const int32_t least_xy_segment_time = _MIN(_MAX(xs0, xs1, xs2), _MAX(ys0, ys1, ys2));
Expand Down

0 comments on commit 8c252b9

Please sign in to comment.