From cfb5c24bc95be2c29e2428f19a9cebbc4d94e24a Mon Sep 17 00:00:00 2001 From: esenapaj Date: Mon, 10 Oct 2016 07:44:27 +0900 Subject: [PATCH] Small fix for the PR #4980 (LIN_ADVANCE bug fix and optimization) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ・Fix a comment about timer --- Marlin/stepper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/stepper.cpp b/Marlin/stepper.cpp index ebe55b9ada..5b3b848a2f 100644 --- a/Marlin/stepper.cpp +++ b/Marlin/stepper.cpp @@ -604,7 +604,7 @@ void Stepper::isr() { #endif // ADVANCE or LIN_ADVANCE #if ENABLED(ADVANCE) || ENABLED(LIN_ADVANCE) - 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. + 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. #endif } else if (step_events_completed > (uint32_t)current_block->decelerate_after) {