Browse Source

Fix for LA (#9964)

Missed in the original LA 1.5 PR: eISR has to use a local copy of
current_block->use_advance_lead because it might still run wenn the last
block has been set to NULL.
Sebastianv650 7 years ago
parent
commit
5b85464791
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/module/stepper.cpp

+ 1
- 1
Marlin/src/module/stepper.cpp View File

@@ -776,7 +776,7 @@ void Stepper::isr() {
776 776
       #define STOP_E_PULSE(INDEX) do { if (e_steps) { E## INDEX ##_STEP_WRITE(INVERT_E_STEP_PIN); e_steps < 0 ? ++e_steps : --e_steps; } }while(0)
777 777
     #endif
778 778
 
779
-    if (current_block->use_advance_lead) {
779
+    if (use_advance_lead) {
780 780
       if (step_events_completed > LA_decelerate_after && current_adv_steps > final_adv_steps) {
781 781
         e_steps--;
782 782
         current_adv_steps--;

Loading…
Cancel
Save