diff options
author | David Crocker <dcrocker@eschertech.com> | 2021-11-07 11:13:04 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2021-11-07 11:13:04 +0300 |
commit | fd67416a7ec8a13a5531aabf4c7a2ff052929d6b (patch) | |
tree | 9fa63c51c46d7a44d56858ec2c6acc9a1d578248 | |
parent | eebd32c8f7e40aaaef055e86eccbe166c741a70c (diff) |
Bug fix for tool changing
-rw-r--r-- | src/GCodes/GCodes4.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/GCodes/GCodes4.cpp b/src/GCodes/GCodes4.cpp index 652c1e64..427a6e07 100644 --- a/src/GCodes/GCodes4.cpp +++ b/src/GCodes/GCodes4.cpp @@ -366,11 +366,6 @@ void GCodes::RunStateMachine(GCodeBuffer& gb, const StringRef& reply) noexcept UpdateCurrentUserPosition(gb); // get the actual position of the new tool gb.AdvanceState(); - if (machineType != MachineType::fff || toolChangeParam == 0) - { - gb.AdvanceState(); // skip moving tool to the new height if not a 3D printer or Tn P0 was given - } - if (reprap.GetCurrentTool() != nullptr && (toolChangeParam & TPostBit) != 0) // 2020-04-29: run tpost file even if not all axes have been homed { String<StringLength20> scratchString; |