Browse Source

Merge pull request #4984 from esenapaj/Small-fix-for-PR-#4980

Small fix for the PR #4980 (LIN_ADVANCE bug fix and optimization)
Scott Lahteine 8 years ago
parent
commit
2cb5df8a56
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/stepper.cpp

+ 1
- 1
Marlin/stepper.cpp View File

604
     #endif // ADVANCE or LIN_ADVANCE
604
     #endif // ADVANCE or LIN_ADVANCE
605
 
605
 
606
     #if ENABLED(ADVANCE) || ENABLED(LIN_ADVANCE)
606
     #if ENABLED(ADVANCE) || ENABLED(LIN_ADVANCE)
607
-      eISR_Rate = (timer >> 3) * step_loops / abs(e_steps[TOOL_E_INDEX]); //>> 3 is divide by 8. Reason: Timer 0 runs at 16/8=2MHz, Timer 1 at 16/64=0.25MHz. ==> 2/0.25=8.
607
+      eISR_Rate = (timer >> 3) * step_loops / abs(e_steps[TOOL_E_INDEX]); //>> 3 is divide by 8. Reason: Timer 1 runs at 16/8=2MHz, Timer 0 at 16/64=0.25MHz. ==> 2/0.25=8.
608
     #endif
608
     #endif
609
   }
609
   }
610
   else if (step_events_completed > (uint32_t)current_block->decelerate_after) {
610
   else if (step_events_completed > (uint32_t)current_block->decelerate_after) {

Loading…
Cancel
Save