Skip to content

Commit eeef571

Browse files
committed
Merge pull request #3613 from thinkyhead/rc_acceleration_fix1
Fix an acceleration anomaly by making locals signed
2 parents c3ef999 + e38baaa commit eeef571

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Marlin/planner.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,7 @@ float junction_deviation = 0.1;
941941

942942
// Compute and limit the acceleration rate for the trapezoid generator.
943943
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];
945945
if (bsx == 0 && bsy == 0 && bsz == 0) {
946946
block->acceleration_st = ceil(retract_acceleration * steps_per_mm); // convert to: acceleration steps/sec^2
947947
}

0 commit comments

Comments
 (0)