Fix reset of endstops and move state

This commit is contained in:
Scott Lahteine 2018-05-24 19:29:06 -05:00
parent 995702c924
commit b20d7129ab
3 changed files with 5 additions and 12 deletions

View file

@ -1195,6 +1195,7 @@ void Stepper::stepper_pulse_phase_isr() {
if (abort_current_block) {
abort_current_block = false;
if (current_block) {
axis_did_move = 0;
current_block = NULL;
planner.discard_current_block();
}
@ -1504,6 +1505,7 @@ uint32_t Stepper::stepper_block_phase_isr() {
// If current block is finished, reset pointer
if (all_steps_done) {
axis_did_move = 0;
current_block = NULL;
planner.discard_current_block();
}