Skip to content

Commit 740f7d9

Browse files
committed
cleanup
1 parent c88ab97 commit 740f7d9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Marlin/src/module/stepper.cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -1792,7 +1792,7 @@ void Stepper::pulse_phase_isr() {
17921792
PULSE_PREP(W);
17931793
#endif
17941794

1795-
#if HAS_E0_STEP || ENABLED(MIXING_EXTRUDER)
1795+
#if EITHER(HAS_E0_STEP, MIXING_EXTRUDER)
17961796
PULSE_PREP(E);
17971797

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

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

23712370
// Calculate Bresenham dividends and divisors
23722371
advance_dividend = current_block->steps << 1;

0 commit comments

Comments
 (0)