Fix for the commit dc2cb84 (Revert acceleration limiting to avoid overflow)

・Add forgotten '\'
2.0.x
esenapaj 8 years ago
parent dc2cb8454c
commit 1e1edeadd3

@ -1021,8 +1021,8 @@ void Planner::_buffer_line(const float &a, const float &b, const float &c, const
}
else {
#define LIMIT_ACCEL(AXIS) do{ \
if (max_acceleration_steps_per_s2[AXIS] < (accel * block->steps[AXIS]) / block->step_event_count)
accel = (max_acceleration_steps_per_s2[AXIS] * block->step_event_count) / block->steps[AXIS];
if (max_acceleration_steps_per_s2[AXIS] < (accel * block->steps[AXIS]) / block->step_event_count) \
accel = (max_acceleration_steps_per_s2[AXIS] * block->step_event_count) / block->steps[AXIS]; \
}while(0)
// Start with print or travel acceleration

Loading…
Cancel
Save