Comment/cleanup motion code

This commit is contained in:
Scott Lahteine 2017-12-01 23:21:02 -06:00
parent 7bed539fdb
commit 8b7c274db5
5 changed files with 160 additions and 200 deletions

View file

@ -443,8 +443,7 @@ void Stepper::isr() {
// If there is no current block, attempt to pop one from the buffer
if (!current_block) {
// Anything in the buffer?
current_block = planner.get_current_block();
if (current_block) {
if ((current_block = planner.get_current_block())) {
trapezoid_generator_reset();
// Initialize Bresenham counters to 1/2 the ceiling