instant stop of sd prints from the panel.
This commit is contained in:
parent
01001b89d2
commit
82c99625fa
3 changed files with 11 additions and 1 deletions
|
|
@ -752,3 +752,12 @@ void finishAndDisableSteppers()
|
|||
disable_z();
|
||||
disable_e();
|
||||
}
|
||||
|
||||
void quickStop()
|
||||
{
|
||||
DISABLE_STEPPER_DRIVER_INTERRUPT();
|
||||
while(blocks_queued())
|
||||
plan_discard_current_block();
|
||||
ENABLE_STEPPER_DRIVER_INTERRUPT();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue