Skip to content

Commit

Permalink
🐛 Clean up DELTA babystep Z
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Apr 5, 2023
1 parent 80839cf commit e687490
Showing 1 changed file with 0 additions and 72 deletions.
72 changes: 0 additions & 72 deletions Marlin/src/module/stepper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3732,24 +3732,6 @@ void Stepper::report_positions() {
#ifdef Z_DIR_WRITE
Z_DIR_WRITE(ENABLED(INVERT_Z_DIR) ^ z_direction);
#endif
#ifdef I_DIR_WRITE
I_DIR_WRITE(ENABLED(INVERT_I_DIR) ^ z_direction);
#endif
#ifdef J_DIR_WRITE
J_DIR_WRITE(ENABLED(INVERT_J_DIR) ^ z_direction);
#endif
#ifdef K_DIR_WRITE
K_DIR_WRITE(ENABLED(INVERT_K_DIR) ^ z_direction);
#endif
#ifdef U_DIR_WRITE
U_DIR_WRITE(ENABLED(INVERT_U_DIR) ^ z_direction);
#endif
#ifdef V_DIR_WRITE
V_DIR_WRITE(ENABLED(INVERT_V_DIR) ^ z_direction);
#endif
#ifdef W_DIR_WRITE
W_DIR_WRITE(ENABLED(INVERT_W_DIR) ^ z_direction);
#endif

DIR_WAIT_AFTER();

Expand All @@ -3762,24 +3744,6 @@ void Stepper::report_positions() {
#ifdef Z_STEP_WRITE
Z_STEP_WRITE(STEP_STATE_Z);
#endif
#ifdef I_STEP_WRITE
I_STEP_WRITE(STEP_STATE_I);
#endif
#ifdef J_STEP_WRITE
J_STEP_WRITE(STEP_STATE_J);
#endif
#ifdef K_STEP_WRITE
K_STEP_WRITE(STEP_STATE_K);
#endif
#ifdef U_STEP_WRITE
U_STEP_WRITE(STEP_STATE_U);
#endif
#ifdef V_STEP_WRITE
V_STEP_WRITE(STEP_STATE_V);
#endif
#ifdef W_STEP_WRITE
W_STEP_WRITE(STEP_STATE_W);
#endif

_PULSE_WAIT();

Expand All @@ -3790,24 +3754,6 @@ void Stepper::report_positions() {
#ifdef Z_STEP_WRITE
Z_STEP_WRITE(!STEP_STATE_Z);
#endif
#ifdef I_STEP_WRITE
I_STEP_WRITE(!STEP_STATE_I);
#endif
#ifdef J_STEP_WRITE
J_STEP_WRITE(!STEP_STATE_J);
#endif
#ifdef K_STEP_WRITE
K_STEP_WRITE(!STEP_STATE_K);
#endif
#ifdef U_STEP_WRITE
U_STEP_WRITE(!STEP_STATE_U);
#endif
#ifdef V_STEP_WRITE
V_STEP_WRITE(!STEP_STATE_V);
#endif
#ifdef W_STEP_WRITE
W_STEP_WRITE(!STEP_STATE_W);
#endif

// Restore direction bits
EXTRA_DIR_WAIT_BEFORE();
Expand All @@ -3819,24 +3765,6 @@ void Stepper::report_positions() {
#ifdef Z_DIR_WRITE
Z_DIR_WRITE(old_dir.z);
#endif
#ifdef I_DIR_WRITE
I_DIR_WRITE(old_dir.i);
#endif
#ifdef J_DIR_WRITE
J_DIR_WRITE(old_dir.j);
#endif
#ifdef K_DIR_WRITE
K_DIR_WRITE(old_dir.k);
#endif
#ifdef U_DIR_WRITE
U_DIR_WRITE(old_dir.u);
#endif
#ifdef V_DIR_WRITE
V_DIR_WRITE(old_dir.v);
#endif
#ifdef W_DIR_WRITE
W_DIR_WRITE(old_dir.w);
#endif

EXTRA_DIR_WAIT_AFTER();

Expand Down

0 comments on commit e687490

Please sign in to comment.