Skip to content

Commit

Permalink
Merge pull request #2 from mriscoc/2.0.x
Browse files Browse the repository at this point in the history
Fix extraneous Linear Advance DIR change (MarlinFirmware#20131)
  • Loading branch information
mriscoc authored Nov 18, 2020
2 parents e8673e3 + e06de46 commit ba0d3ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Marlin/src/module/stepper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2261,7 +2261,6 @@ uint32_t Stepper::block_phase_isr() {
interval = LA_isr_rate;
}
else if (step_events_completed < decelerate_after && LA_current_adv_steps < LA_max_adv_steps) {
//step_events_completed <= (uint32_t)accelerate_until) {
LA_steps++;
LA_current_adv_steps++;
interval = LA_isr_rate;
Expand All @@ -2272,6 +2271,8 @@ uint32_t Stepper::block_phase_isr() {
else
interval = LA_ADV_NEVER;

if (!LA_steps) return interval; // Leave pins alone if there are no steps!

DIR_WAIT_BEFORE();

#if ENABLED(MIXING_EXTRUDER)
Expand Down

0 comments on commit ba0d3ee

Please sign in to comment.