|
@@ -941,7 +941,7 @@ float junction_deviation = 0.1;
|
941
|
941
|
|
942
|
942
|
// Compute and limit the acceleration rate for the trapezoid generator.
|
943
|
943
|
float steps_per_mm = block->step_event_count / block->millimeters;
|
944
|
|
- unsigned long bsx = block->steps[X_AXIS], bsy = block->steps[Y_AXIS], bsz = block->steps[Z_AXIS], bse = block->steps[E_AXIS];
|
|
944
|
+ long bsx = block->steps[X_AXIS], bsy = block->steps[Y_AXIS], bsz = block->steps[Z_AXIS], bse = block->steps[E_AXIS];
|
945
|
945
|
if (bsx == 0 && bsy == 0 && bsz == 0) {
|
946
|
946
|
block->acceleration_st = ceil(retract_acceleration * steps_per_mm); // convert to: acceleration steps/sec^2
|
947
|
947
|
}
|