Skip to content
Snippets Groups Projects
Commit 4e379398 authored by Scott Lahteine's avatar Scott Lahteine
Browse files

Ensure pulse delay in babystepping

Proposed alternative to #10778
parent 6f10d637
Branches
No related tags found
No related merge requests found
......@@ -2095,9 +2095,9 @@ void Stepper::report_positions() {
#define BABYSTEP_AXIS(AXIS, INVERT, DIR) { \
const uint8_t old_dir = _READ_DIR(AXIS); \
_ENABLE(AXIS); \
_SAVE_START; \
_APPLY_DIR(AXIS, _INVERT_DIR(AXIS)^DIR^INVERT); \
_PULSE_WAIT; \
DELAY_NS(400); /* DRV8825 */ \
_SAVE_START; \
_APPLY_STEP(AXIS)(!_INVERT_STEP_PIN(AXIS), true); \
_PULSE_WAIT; \
_APPLY_STEP(AXIS)(_INVERT_STEP_PIN(AXIS), true); \
......@@ -2168,6 +2168,8 @@ void Stepper::report_positions() {
Y_DIR_WRITE(INVERT_Y_DIR ^ z_direction);
Z_DIR_WRITE(INVERT_Z_DIR ^ z_direction);
DELAY_NS(400); // DRV8825
_SAVE_START;
X_STEP_WRITE(!INVERT_X_STEP_PIN);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment