diff options
author | David Crocker <dcrocker@eschertech.com> | 2020-10-06 14:28:55 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2020-10-06 14:28:55 +0300 |
commit | 15e3a526336019e71f0d13e181ed4ebd0125583f (patch) | |
tree | f89b26f3ec6cde2fea0bccffa39f433be4a49f09 /src/GCodes/GCodes3.cpp | |
parent | 42b31bccc0d81eb476133c922b83e538a033d73c (diff) |
Bug fixes to G92
G92 Z was not clearing zDatumSetByProbing
G902 E0 was incrementing move.seqs
Diffstat (limited to 'src/GCodes/GCodes3.cpp')
-rw-r--r-- | src/GCodes/GCodes3.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/GCodes/GCodes3.cpp b/src/GCodes/GCodes3.cpp index eae574f5..4fc9cb92 100644 --- a/src/GCodes/GCodes3.cpp +++ b/src/GCodes/GCodes3.cpp @@ -99,7 +99,11 @@ GCodeResult GCodes::SetPositions(GCodeBuffer& gb) THROWS(GCodeException) axesHomed |= reprap.GetMove().GetKinematics().AxesAssumedHomed(axesIncluded); if (axesIncluded.IsBitSet(Z_AXIS)) { - zDatumSetByProbing -= false; + if (zDatumSetByProbing) + { + zDatumSetByProbing = false; + reprap.MoveUpdated(); + } } #if SUPPORT_ROLAND @@ -116,7 +120,6 @@ GCodeResult GCodes::SetPositions(GCodeBuffer& gb) THROWS(GCodeException) #endif } - reprap.MoveUpdated(); // I'm not sure this is necessary because the position and homed fields in the OM are flagged 'frequent'; but we may have changed zDatumSetByProbing return GCodeResult::ok; } |