Skip to content

Commit

Permalink
Merge pull request #3613 from thinkyhead/rc_acceleration_fix1
Browse files Browse the repository at this point in the history
Fix an acceleration anomaly by making locals signed
  • Loading branch information
thinkyhead committed Apr 29, 2016
2 parents c3ef999 + e38baaa commit eeef571
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Marlin/planner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@ float junction_deviation = 0.1;

// Compute and limit the acceleration rate for the trapezoid generator.
float steps_per_mm = block->step_event_count / block->millimeters;
unsigned long bsx = block->steps[X_AXIS], bsy = block->steps[Y_AXIS], bsz = block->steps[Z_AXIS], bse = block->steps[E_AXIS];
long bsx = block->steps[X_AXIS], bsy = block->steps[Y_AXIS], bsz = block->steps[Z_AXIS], bse = block->steps[E_AXIS];
if (bsx == 0 && bsy == 0 && bsz == 0) {
block->acceleration_st = ceil(retract_acceleration * steps_per_mm); // convert to: acceleration steps/sec^2
}
Expand Down

0 comments on commit eeef571

Please sign in to comment.