From 78a347a01ad3441659a76c540bdc4866c6b0d7d1 Mon Sep 17 00:00:00 2001 From: Wurstnase Date: Fri, 4 Dec 2015 09:41:13 +0100 Subject: [PATCH] change nx, ny, nz and ne from float to long st_set_position takes long ```void st_set_position(const long& x, const long& y, const long& z, const long& e)``` --- Marlin/planner.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Marlin/planner.cpp b/Marlin/planner.cpp index 1e2f70d07..b90be9f16 100644 --- a/Marlin/planner.cpp +++ b/Marlin/planner.cpp @@ -1029,10 +1029,10 @@ float junction_deviation = 0.1; apply_rotation_xyz(plan_bed_level_matrix, x, y, z); #endif - float nx = position[X_AXIS] = lround(x * axis_steps_per_unit[X_AXIS]), - ny = position[Y_AXIS] = lround(y * axis_steps_per_unit[Y_AXIS]), - nz = position[Z_AXIS] = lround(z * axis_steps_per_unit[Z_AXIS]), - ne = position[E_AXIS] = lround(e * axis_steps_per_unit[E_AXIS]); + long nx = position[X_AXIS] = lround(x * axis_steps_per_unit[X_AXIS]), + ny = position[Y_AXIS] = lround(y * axis_steps_per_unit[Y_AXIS]), + nz = position[Z_AXIS] = lround(z * axis_steps_per_unit[Z_AXIS]), + ne = position[E_AXIS] = lround(e * axis_steps_per_unit[E_AXIS]); st_set_position(nx, ny, nz, ne); previous_nominal_speed = 0.0; // Resets planner junction speeds. Assumes start from rest.