Added current_block = NULL to quickStop()

This commit is contained in:
Erik van der Zalm 2012-03-03 20:40:46 +01:00
parent f598077af3
commit 072011a3ef

View File

@ -822,6 +822,7 @@ void quickStop()
DISABLE_STEPPER_DRIVER_INTERRUPT(); DISABLE_STEPPER_DRIVER_INTERRUPT();
while(blocks_queued()) while(blocks_queued())
plan_discard_current_block(); plan_discard_current_block();
current_block = NULL;
ENABLE_STEPPER_DRIVER_INTERRUPT(); ENABLE_STEPPER_DRIVER_INTERRUPT();
} }