Add proper delay in stepper.cpp

Issue #1385 describes a delay that the compiler is optimizing out and
this solution.
master
Scott Lahteine 10 years ago
parent 4f35de991a
commit d9d4a78e0f

@ -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