浏览代码

Add proper delay in stepper.cpp

Issue #1385 describes a delay that the compiler is optimizing out and
this solution.
Scott Lahteine 10 年前
父节点
当前提交
d9d4a78e0f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      Marlin/stepper.cpp

+ 1
- 1
Marlin/stepper.cpp 查看文件

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

正在加载...
取消
保存