Pārlūkot izejas kodu

Dual X set_axis_is_at_home can use x_home_pos for both

Scott Lahteine 8 gadus atpakaļ
vecāks
revīzija
0e15b4f434
1 mainītis faili ar 2 papildinājumiem un 6 dzēšanām
  1. 2
    6
      Marlin/Marlin_main.cpp

+ 2
- 6
Marlin/Marlin_main.cpp Parādīt failu

1432
   update_software_endstops(axis);
1432
   update_software_endstops(axis);
1433
 
1433
 
1434
   #if ENABLED(DUAL_X_CARRIAGE)
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
       return;
1437
       return;
1442
     }
1438
     }
1443
   #endif
1439
   #endif

Notiek ielāde…
Atcelt
Saglabāt