blocks_queued => has_blocks_queued
This commit is contained in:
parent
647c04def8
commit
c57545ee08
4 changed files with 11 additions and 11 deletions
|
|
@ -1112,7 +1112,7 @@ void Stepper::init() {
|
|||
/**
|
||||
* Block until all buffered steps are executed / cleaned
|
||||
*/
|
||||
void Stepper::synchronize() { while (planner.blocks_queued() || cleaning_buffer_counter) idle(); }
|
||||
void Stepper::synchronize() { while (planner.has_blocks_queued() || cleaning_buffer_counter) idle(); }
|
||||
|
||||
/**
|
||||
* Set the stepper positions directly in steps
|
||||
|
|
@ -1212,7 +1212,7 @@ void Stepper::finish_and_disable() {
|
|||
void Stepper::quick_stop() {
|
||||
cleaning_buffer_counter = 5000;
|
||||
DISABLE_STEPPER_DRIVER_INTERRUPT();
|
||||
while (planner.blocks_queued()) planner.discard_current_block();
|
||||
while (planner.has_blocks_queued()) planner.discard_current_block();
|
||||
current_block = NULL;
|
||||
ENABLE_STEPPER_DRIVER_INTERRUPT();
|
||||
#if ENABLED(ULTRA_LCD)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue