瀏覽代碼

Fix a potential hanging "else" bug

Scott Lahteine 10 年之前
父節點
當前提交
2f3a410cb0
共有 1 個檔案被更改,包括 1 行新增2 行删除
  1. 1
    2
      Marlin/Marlin_main.cpp

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

@@ -1596,12 +1596,11 @@ static void homeaxis(AxisEnum axis) {
1596 1596
       if (axis == Z_AXIS) {
1597 1597
         if (axis_home_dir < 0) deploy_z_probe();
1598 1598
       }
1599
-      else
1600 1599
 
1601 1600
     #endif
1602 1601
 
1603 1602
     #ifdef SERVO_ENDSTOPS
1604
-      {
1603
+      if (axis != Z_AXIS) {
1605 1604
         // Engage Servo endstop if enabled
1606 1605
         if (servo_endstops[axis] > -1)
1607 1606
           servo[servo_endstops[axis]].write(servo_endstop_angles[axis * 2]);

Loading…
取消
儲存