Skip to content

Commit

Permalink
Tweak pulse logic
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Aug 26, 2020
1 parent b671149 commit 7b1ef51
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Marlin/src/module/stepper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1578,12 +1578,11 @@ void Stepper::pulse_phase_isr() {

#if STEPPER_PAGE_FORMAT == SP_4x4D_128

#define PAGE_SEGMENT_UPDATE(AXIS, VALUE) do{ \
if ((VALUE) == 7) {} \
else if ((VALUE) < 7) SBI(dm, _AXIS(AXIS)); \
else CBI(dm, _AXIS(AXIS)); \
page_step_state.sd[_AXIS(AXIS)] = VALUE; \
page_step_state.bd[_AXIS(AXIS)] += VALUE; \
#define PAGE_SEGMENT_UPDATE(AXIS, VALUE) do{ \
if ((VALUE) < 7) SBI(dm, _AXIS(AXIS)); \
else if ((VALUE) < 7) CBI(dm, _AXIS(AXIS)); \
page_step_state.sd[_AXIS(AXIS)] = VALUE; \
page_step_state.bd[_AXIS(AXIS)] += VALUE; \
}while(0)

#define PAGE_PULSE_PREP(AXIS) do{ \
Expand Down

0 comments on commit 7b1ef51

Please sign in to comment.