From d9d4a78e0ff529e42102aa3d1993842bf9b845e9 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Wed, 21 Jan 2015 01:51:29 -0800 Subject: [PATCH] Add proper delay in stepper.cpp Issue #1385 describes a delay that the compiler is optimizing out and this solution. --- Marlin/stepper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/stepper.cpp b/Marlin/stepper.cpp index b2e7d1208..0b39776b9 100644 --- a/Marlin/stepper.cpp +++ b/Marlin/stepper.cpp @@ -1111,7 +1111,7 @@ void babystep(const uint8_t axis,const bool direction) WRITE(X2_STEP_PIN, !INVERT_X_STEP_PIN); #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); #ifdef DUAL_X_CARRIAGE