Handle dual gantry machines better

This commit is contained in:
Roxy-3D 2018-07-24 15:34:53 -05:00 committed by GitHub
parent 09485f63e9
commit 62fa028155
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -303,10 +303,10 @@
// Check for commands that require the printer to be homed // Check for commands that require the printer to be homed
if (may_move) { if (may_move) {
if (axis_unhomed_error()) gcode.home_all_axes();
#if ENABLED(DUAL_X_CARRIAGE) #if ENABLED(DUAL_X_CARRIAGE)
if (active_extruder != 0) tool_change(0); if (active_extruder != 0) tool_change(0);
#endif #endif
if (axis_unhomed_error()) gcode.home_all_axes();
} }
// Invalidate Mesh Points. This command is a little bit asymmetrical because // Invalidate Mesh Points. This command is a little bit asymmetrical because