mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-06-26 00:41:33 +00:00
Fix reset of endstops and move state
This commit is contained in:
parent
50fa8e01c1
commit
7261f48872
3 changed files with 5 additions and 12 deletions
Marlin/src/module
|
@ -1232,6 +1232,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();
|
||||
}
|
||||
|
@ -1541,6 +1542,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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue