Bladeren bron

Toolchange touchup (#17395)

Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
InsanityAutomation 4 jaren geleden
bovenliggende
commit
bc01d8d023
No account linked to committer's email address
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 2
    2
      Marlin/src/module/tool_change.cpp

+ 2
- 2
Marlin/src/module/tool_change.cpp Bestand weergeven

@@ -821,7 +821,7 @@ void tool_change(const uint8_t new_tool, bool no_move/*=false*/) {
821 821
     if (new_tool >= EXTRUDERS)
822 822
       return invalid_extruder_error(new_tool);
823 823
 
824
-    if (!no_move && !all_axes_homed()) {
824
+    if (!no_move && !homing_needed()) {
825 825
       no_move = true;
826 826
       if (DEBUGGING(LEVELING)) DEBUG_ECHOLNPGM("No move (not homed)");
827 827
     }
@@ -1073,7 +1073,7 @@ void tool_change(const uint8_t new_tool, bool no_move/*=false*/) {
1073 1073
     #endif
1074 1074
 
1075 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 1077
         gcode.process_subcommands_now_P(PSTR(EVENT_GCODE_AFTER_TOOLCHANGE));
1078 1078
     #endif
1079 1079
 

Laden…
Annuleren
Opslaan