0
0
Fork 0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2025-01-31 14:12:52 +00:00

🐛 Clean up DELTA babystep Z

This commit is contained in:
Scott Lahteine 2023-04-04 21:52:26 -05:00
parent 80839cf020
commit e687490f41

View file

@ -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();
@ -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();
@ -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();
@ -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();