clear_block_buffer, kill_current_block in quick_stop

This commit is contained in:
Scott Lahteine committed 2018-04-13 22:04:53 -05:00
1 parent 99282a46e9
commit 36b97bde9f
3 files changed
+9 -6

No files matched your search

+3 -2
View File
@@ -2083,10 +2083,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();