Procházet zdrojové kódy

Apply LOGICAL_POSITION to home positions on Dual X

Scott Lahteine před 8 roky
rodič
revize
41278c1e8b
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 3
    3
      Marlin/Marlin_main.cpp

+ 3
- 3
Marlin/Marlin_main.cpp Zobrazit soubor

@@ -1318,11 +1318,11 @@ bool get_target_extruder_from_command(int code) {
1318 1318
     else
1319 1319
       /**
1320 1320
        * In dual carriage mode the extruder offset provides an override of the
1321
-       * second X-carriage offset when homed - otherwise X2_HOME_POS is used.
1322
-       * This allow soft recalibration of the second extruder offset position
1321
+       * second X-carriage position when homed - otherwise X2_HOME_POS is used.
1322
+       * This allows soft recalibration of the second extruder home position
1323 1323
        * without firmware reflash (through the M218 command).
1324 1324
        */
1325
-      return (hotend_offset[X_AXIS][1] > 0) ? hotend_offset[X_AXIS][1] : X2_HOME_POS;
1325
+      return LOGICAL_X_POSITION(hotend_offset[X_AXIS][1] > 0 ? hotend_offset[X_AXIS][1] : X2_HOME_POS);
1326 1326
   }
1327 1327
 
1328 1328
   static int x_home_dir(int extruder) {

Loading…
Zrušit
Uložit