瀏覽代碼

Dual X set_axis_is_at_home can use x_home_pos for both

Scott Lahteine 8 年之前
父節點
當前提交
0e15b4f434
共有 1 個文件被更改,包括 2 次插入6 次删除
  1. 2
    6
      Marlin/Marlin_main.cpp

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

@@ -1432,12 +1432,8 @@ static void set_axis_is_at_home(AxisEnum axis) {
1432 1432
   update_software_endstops(axis);
1433 1433
 
1434 1434
   #if ENABLED(DUAL_X_CARRIAGE)
1435
-    if (axis == X_AXIS && (active_extruder != 0 || dual_x_carriage_mode == DXC_DUPLICATION_MODE)) {
1436
-      if (active_extruder != 0)
1437
-        current_position[X_AXIS] = x_home_pos(active_extruder);
1438
-      else
1439
-        current_position[X_AXIS] = LOGICAL_X_POSITION(base_home_pos(X_AXIS));
1440
-      update_software_endstops(X_AXIS);
1435
+    if (axis == X_AXIS && (active_extruder == 1 || dual_x_carriage_mode == DXC_DUPLICATION_MODE)) {
1436
+      current_position[X_AXIS] = x_home_pos(active_extruder);
1441 1437
       return;
1442 1438
     }
1443 1439
   #endif

Loading…
取消
儲存