Browse Source

Babystep delay 2us

Scott Lahteine 9 years ago
parent
commit
53be0f3399
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/stepper.cpp

+ 2
- 2
Marlin/stepper.cpp View File

@@ -1140,7 +1140,7 @@ void quickStop() {
1140 1140
         uint8_t old_pin = AXIS ##_DIR_READ; \
1141 1141
         AXIS ##_APPLY_DIR(INVERT_## AXIS ##_DIR^direction^INVERT, true); \
1142 1142
         AXIS ##_APPLY_STEP(!INVERT_## AXIS ##_STEP_PIN, true); \
1143
-        _delay_us(1U); \
1143
+        delayMicroseconds(2); \
1144 1144
         AXIS ##_APPLY_STEP(INVERT_## AXIS ##_STEP_PIN, true); \
1145 1145
         AXIS ##_APPLY_DIR(old_pin, true); \
1146 1146
       }
@@ -1179,7 +1179,7 @@ void quickStop() {
1179 1179
           X_STEP_WRITE(!INVERT_X_STEP_PIN);
1180 1180
           Y_STEP_WRITE(!INVERT_Y_STEP_PIN);
1181 1181
           Z_STEP_WRITE(!INVERT_Z_STEP_PIN);
1182
-          _delay_us(1U);
1182
+          delayMicroseconds(2);
1183 1183
           X_STEP_WRITE(INVERT_X_STEP_PIN); 
1184 1184
           Y_STEP_WRITE(INVERT_Y_STEP_PIN); 
1185 1185
           Z_STEP_WRITE(INVERT_Z_STEP_PIN);

Loading…
Cancel
Save