diff options
author | David Crocker <dcrocker@eschertech.com> | 2021-11-24 17:36:11 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2021-11-24 17:36:11 +0300 |
commit | 81bac91317d6dd6756d72897786ee58bc3e88bfc (patch) | |
tree | d3c513621cd01379736f58aba8939347b28a66e5 | |
parent | 9045f04fedcd6c5d78b9aad18ff71655d9ad71ae (diff) |
Don't output T-1 in resurrect.g file, for tool changers
-rw-r--r-- | src/GCodes/GCodes.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/GCodes/GCodes.cpp b/src/GCodes/GCodes.cpp index ff28a27c..902c0ac0 100644 --- a/src/GCodes/GCodes.cpp +++ b/src/GCodes/GCodes.cpp @@ -1363,8 +1363,9 @@ void GCodes::SaveResumeInfo(bool wasPowerFailure) noexcept { // Write a G92 command to say where the head is. This is useful if we can't Z-home the printer with a print on the bed and the Z steps/mm is high. // The paused coordinates include any tool offsets and baby step offsets, so remove those. - // Also ensure that no tool is selected, in case config.g selects one and it has an offset. - buf.copy("T-1 P0\nG92"); + // We used to send T-1 here ensure that no tool is selected, in case config.g selects one and it has an offset. + // We no longer do that because on some tool changers it is possible to home X and Y with a tool loaded. + buf.copy("G92"); for (size_t axis = 0; axis < numVisibleAxes; ++axis) { const float totalOffset = currentBabyStepOffsets[axis] - GetCurrentToolOffset(axis); |