Browse Source

Add proper delay in stepper.cpp

Issue #1385 describes a delay that the compiler is optimizing out and
this solution.
pull/1/head
Scott Lahteine 10 years ago
parent
commit
d9d4a78e0f
  1. 2
      Marlin/stepper.cpp

2
Marlin/stepper.cpp

@ -1111,7 +1111,7 @@ void babystep(const uint8_t axis,const bool direction)
WRITE(X2_STEP_PIN, !INVERT_X_STEP_PIN); WRITE(X2_STEP_PIN, !INVERT_X_STEP_PIN);
#endif #endif
{ {
float x=1./float(axis+1)/float(axis+2); //wait a tiny bit _delay_us(1U); // wait 1 microsecond
} }
WRITE(X_STEP_PIN, INVERT_X_STEP_PIN); WRITE(X_STEP_PIN, INVERT_X_STEP_PIN);
#ifdef DUAL_X_CARRIAGE #ifdef DUAL_X_CARRIAGE

Loading…
Cancel
Save