Explorar el Código

Dual X set_axis_is_at_home can use x_home_pos for both

Scott Lahteine hace 8 años
padre
commit
0e15b4f434
Se han modificado 1 ficheros con 2 adiciones y 6 borrados
  1. 2
    6
      Marlin/Marlin_main.cpp

+ 2
- 6
Marlin/Marlin_main.cpp Ver fichero

@@ -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…
Cancelar
Guardar