diff options
author | David Crocker <dcrocker@eschertech.com> | 2021-08-18 13:41:29 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2021-08-18 13:41:29 +0300 |
commit | 1ad1b972be9cb69ec219957dbab6c5bb914bc23f (patch) | |
tree | a6d14eba697194a1171ebbe36f320d39f57b143f /src/Movement | |
parent | eca81e14c95c5d8da64b67a0b1bdeaf6e13f2f4c (diff) |
Fixes extrusion issue
Diffstat (limited to 'src/Movement')
-rw-r--r-- | src/Movement/DriveMovement.cpp | 2 | ||||
-rw-r--r-- | src/Movement/Move.h | 5 |
2 files changed, 1 insertions, 6 deletions
diff --git a/src/Movement/DriveMovement.cpp b/src/Movement/DriveMovement.cpp index ae4d6f6f..f00c1624 100644 --- a/src/Movement/DriveMovement.cpp +++ b/src/Movement/DriveMovement.cpp @@ -581,7 +581,7 @@ bool DriveMovement::PrepareExtruder(const DDA& dda, const PrepParams& params) no { const float stepsPerMm = reprap.GetPlatform().DriveStepsPerUnit(drive); const float effStepsPerMm = stepsPerMm * fabsf(dda.directionVector[drive]); - const float effMmPerStep = 1.0/stepsPerMm; + const float effMmPerStep = 1.0/effStepsPerMm; ExtruderShaper& shaper = reprap.GetMove().GetExtruderShaper(LogicalDriveToExtruder(drive)); float forwardDistance = mp.cart.extrusionBroughtForwards = shaper.GetExtrusionPending()/dda.directionVector[drive]; diff --git a/src/Movement/Move.h b/src/Movement/Move.h index 1e5db53d..426e01e3 100644 --- a/src/Movement/Move.h +++ b/src/Movement/Move.h @@ -290,12 +290,7 @@ private: Kinematics *kinematics; // What kinematics we are using AxisShaper axisShaper; - -#if SUPPORT_REMOTE_COMMANDS - ExtruderShaper extruderShapers[max<size_t>(MaxExtruders, NumDirectDrivers)]; -#else ExtruderShaper extruderShapers[MaxExtruders]; -#endif float latestLiveCoordinates[MaxAxesPlusExtruders]; float specialMoveCoords[MaxDriversPerAxis]; // Amounts by which to move individual Z motors (leadscrew adjustment move) |