diff options
author | David Crocker <dcrocker@eschertech.com> | 2021-11-11 21:57:55 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2021-11-11 21:57:55 +0300 |
commit | 82d14c198d7b61005093b2b06457d83435a76564 (patch) | |
tree | 6c4f5e994b7e3d620b871f2a79f5ab3e1b4a2612 /src/GCodes/GCodes2.cpp | |
parent | b472db8b61e4b5123fe10b6450bf18c72c91ff00 (diff) |
Fixed issue with extruder stopping after a tiny move
Also refactored nonlinear extrusion coce to make it more efficient
Diffstat (limited to 'src/GCodes/GCodes2.cpp')
-rw-r--r-- | src/GCodes/GCodes2.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/GCodes/GCodes2.cpp b/src/GCodes/GCodes2.cpp index 4755bc61..a04a106b 100644 --- a/src/GCodes/GCodes2.cpp +++ b/src/GCodes/GCodes2.cpp @@ -3729,8 +3729,8 @@ bool GCodes::HandleMcode(GCodeBuffer& gb, const StringRef& reply) THROWS(GCodeEx } else { - platform.GetExtrusionCoefficients(extruder, a, b, limit); - reply.printf("Drive %u nonlinear extrusion coefficients: A=%.3f, B=%.4f, limit=%.2f", extruder, (double)a, (double)b, (double)limit); + const NonlinearExtrusion& nl = platform.GetExtrusionCoefficients(extruder); + reply.printf("Drive %u nonlinear extrusion coefficients: A=%.3f, B=%.4f, limit=%.2f", extruder, (double)nl.A, (double)nl.B, (double)nl.limit); } } break; |