clear_block_buffer, kill_current_block in quick_stop
This commit is contained in:
parent
a783caabac
commit
9769d799df
3 changed files with 9 additions and 6 deletions
|
|
@ -1210,10 +1210,11 @@ void Stepper::finish_and_disable() {
|
|||
}
|
||||
|
||||
void Stepper::quick_stop() {
|
||||
cleaning_buffer_counter = 5000;
|
||||
DISABLE_STEPPER_DRIVER_INTERRUPT();
|
||||
while (planner.has_blocks_queued()) planner.discard_current_block();
|
||||
kill_current_block();
|
||||
current_block = NULL;
|
||||
cleaning_buffer_counter = 5000;
|
||||
planner.clear_block_buffer();
|
||||
ENABLE_STEPPER_DRIVER_INTERRUPT();
|
||||
#if ENABLED(ULTRA_LCD)
|
||||
planner.clear_block_buffer_runtime();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue