浏览代码

Move the Z probe as far as needed to trigger the switch (PR#2461)

Scott Lahteine 10 年前
父节点
当前提交
f209b755a5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      Marlin/Marlin_main.cpp

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

1229
       feedrate = homing_feedrate[Z_AXIS];
1229
       feedrate = homing_feedrate[Z_AXIS];
1230
 
1230
 
1231
       // Move down until the probe (or endstop?) is triggered
1231
       // Move down until the probe (or endstop?) is triggered
1232
-      float zPosition = -10;
1232
+      float zPosition = -(Z_MAX_LENGTH + 10);
1233
       line_to_z(zPosition);
1233
       line_to_z(zPosition);
1234
       st_synchronize();
1234
       st_synchronize();
1235
 
1235
 

正在加载...
取消
保存