Replace block.busy with a block.flag bit

This commit is contained in:
Scott Lahteine
2016-10-30 16:05:14 -05:00
parent c7f22f688f
commit 75dbb71dd7
3 changed files with 35 additions and 30 deletions

View File

@@ -344,7 +344,7 @@ void Stepper::isr() {
// Anything in the buffer?
current_block = planner.get_current_block();
if (current_block) {
current_block->busy = true;
SBI(current_block->flag, BLOCK_BIT_BUSY);
trapezoid_generator_reset();
// Initialize Bresenham counters to 1/2 the ceiling