Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Jul 25, 2022
1 parent c88ab97 commit 740f7d9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Marlin/src/module/stepper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1792,7 +1792,7 @@ void Stepper::pulse_phase_isr() {
PULSE_PREP(W);
#endif

#if HAS_E0_STEP || ENABLED(MIXING_EXTRUDER)
#if EITHER(HAS_E0_STEP, MIXING_EXTRUDER)
PULSE_PREP(E);

#if ENABLED(LIN_ADVANCE)
Expand Down Expand Up @@ -2365,8 +2365,7 @@ uint32_t Stepper::block_phase_isr() {
step_event_count = current_block->step_event_count << oversampling;

// Initialize Bresenham delta errors to 1/2
delta_error = -int32_t(step_event_count);
TERN_(LIN_ADVANCE, la_delta_error = -int32_t(step_event_count));
TERN_(LIN_ADVANCE, la_delta_error =) delta_error = -int32_t(step_event_count);

// Calculate Bresenham dividends and divisors
advance_dividend = current_block->steps << 1;
Expand Down

0 comments on commit 740f7d9

Please sign in to comment.