Merge pull request #5037 from esenapaj/Fix-for-the-commit-dc2cb84

Fix for the commit dc2cb84 (Revert acceleration limiting to avoid overflow)
This commit is contained in:
Roxy-3D 2016-10-18 15:33:06 -05:00 committed by GitHub
commit 8ddd039e68

View file

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