From 6d691aceee6859df57f2cf614ab42c08352b220e Mon Sep 17 00:00:00 2001 From: Wurstnase Date: Fri, 4 Dec 2015 09:37:55 +0100 Subject: [PATCH] change dx, dy, dz and de from float to long anything is long, we don't need float there --- Marlin/planner.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Marlin/planner.cpp b/Marlin/planner.cpp index ab98758e8a..1e2f70d07b 100644 --- a/Marlin/planner.cpp +++ b/Marlin/planner.cpp @@ -507,15 +507,15 @@ float junction_deviation = 0.1; target[Z_AXIS] = lround(z * axis_steps_per_unit[Z_AXIS]); target[E_AXIS] = lround(e * axis_steps_per_unit[E_AXIS]); - float dx = target[X_AXIS] - position[X_AXIS], - dy = target[Y_AXIS] - position[Y_AXIS], - dz = target[Z_AXIS] - position[Z_AXIS]; + long dx = target[X_AXIS] - position[X_AXIS], + dy = target[Y_AXIS] - position[Y_AXIS], + dz = target[Z_AXIS] - position[Z_AXIS]; // DRYRUN ignores all temperature constraints and assures that the extruder is instantly satisfied if (marlin_debug_flags & DEBUG_DRYRUN) position[E_AXIS] = target[E_AXIS]; - float de = target[E_AXIS] - position[E_AXIS]; + long de = target[E_AXIS] - position[E_AXIS]; #if ENABLED(PREVENT_DANGEROUS_EXTRUDE) if (de) {