Browse Source

Toolchange touchup (#17395)

Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
InsanityAutomation 5 years ago
parent
commit
bc01d8d023
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/src/module/tool_change.cpp

+ 2
- 2
Marlin/src/module/tool_change.cpp View File

821
     if (new_tool >= EXTRUDERS)
821
     if (new_tool >= EXTRUDERS)
822
       return invalid_extruder_error(new_tool);
822
       return invalid_extruder_error(new_tool);
823
 
823
 
824
-    if (!no_move && !all_axes_homed()) {
824
+    if (!no_move && !homing_needed()) {
825
       no_move = true;
825
       no_move = true;
826
       if (DEBUGGING(LEVELING)) DEBUG_ECHOLNPGM("No move (not homed)");
826
       if (DEBUGGING(LEVELING)) DEBUG_ECHOLNPGM("No move (not homed)");
827
     }
827
     }
1073
     #endif
1073
     #endif
1074
 
1074
 
1075
     #ifdef EVENT_GCODE_AFTER_TOOLCHANGE
1075
     #ifdef EVENT_GCODE_AFTER_TOOLCHANGE
1076
-      if (!no_move)
1076
+      if (!no_move && TERN1(DUAL_X_CARRIAGE, dual_x_carriage_mode == DXC_AUTO_PARK_MODE))
1077
         gcode.process_subcommands_now_P(PSTR(EVENT_GCODE_AFTER_TOOLCHANGE));
1077
         gcode.process_subcommands_now_P(PSTR(EVENT_GCODE_AFTER_TOOLCHANGE));
1078
     #endif
1078
     #endif
1079
 
1079
 

Loading…
Cancel
Save