Browse Source

[2.0.x] Better timing handling (#11461)

Giuliano 7 years ago
parent
commit
e85feb2545
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      Marlin/src/module/stepper.cpp

+ 4
- 2
Marlin/src/module/stepper.cpp View File

@@ -2247,7 +2247,7 @@ void Stepper::report_positions() {
2247 2247
       const uint8_t old_dir = _READ_DIR(AXIS);          \
2248 2248
       _ENABLE(AXIS);                                    \
2249 2249
       _APPLY_DIR(AXIS, _INVERT_DIR(AXIS)^DIR^INVERT);   \
2250
-      DELAY_NS(400); /* DRV8825 */                      \
2250
+      DELAY_NS(MINIMUM_STEPPER_DIR_DELAY);              \
2251 2251
       _SAVE_START;                                      \
2252 2252
       _APPLY_STEP(AXIS)(!_INVERT_STEP_PIN(AXIS), true); \
2253 2253
       _PULSE_WAIT;                                      \
@@ -2319,7 +2319,9 @@ void Stepper::report_positions() {
2319 2319
           Y_DIR_WRITE(INVERT_Y_DIR ^ z_direction);
2320 2320
           Z_DIR_WRITE(INVERT_Z_DIR ^ z_direction);
2321 2321
 
2322
-          DELAY_NS(400); // DRV8825
2322
+          #if MINIMUM_STEPPER_DIR_DELAY > 0
2323
+            DELAY_NS(MINIMUM_STEPPER_DIR_DELAY);
2324
+          #endif
2323 2325
 
2324 2326
           _SAVE_START;
2325 2327
 

Loading…
Cancel
Save