change dx, dy, dz and de from float to long
anything is long, we don't need float there
This commit is contained in:
parent
6bfcb74c25
commit
6d691aceee
1 changed files with 4 additions and 4 deletions
|
@ -507,7 +507,7 @@ float junction_deviation = 0.1;
|
||||||
target[Z_AXIS] = lround(z * axis_steps_per_unit[Z_AXIS]);
|
target[Z_AXIS] = lround(z * axis_steps_per_unit[Z_AXIS]);
|
||||||
target[E_AXIS] = lround(e * axis_steps_per_unit[E_AXIS]);
|
target[E_AXIS] = lround(e * axis_steps_per_unit[E_AXIS]);
|
||||||
|
|
||||||
float dx = target[X_AXIS] - position[X_AXIS],
|
long dx = target[X_AXIS] - position[X_AXIS],
|
||||||
dy = target[Y_AXIS] - position[Y_AXIS],
|
dy = target[Y_AXIS] - position[Y_AXIS],
|
||||||
dz = target[Z_AXIS] - position[Z_AXIS];
|
dz = target[Z_AXIS] - position[Z_AXIS];
|
||||||
|
|
||||||
|
@ -515,7 +515,7 @@ float junction_deviation = 0.1;
|
||||||
if (marlin_debug_flags & DEBUG_DRYRUN)
|
if (marlin_debug_flags & DEBUG_DRYRUN)
|
||||||
position[E_AXIS] = target[E_AXIS];
|
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 ENABLED(PREVENT_DANGEROUS_EXTRUDE)
|
||||||
if (de) {
|
if (de) {
|
||||||
|
|
Reference in a new issue