Browse Source

Fixup initial error by defect

Yuri D'Elia 5 years ago
parent
commit
3abb2188df
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Firmware/stepper.cpp

+ 1 - 1
Firmware/stepper.cpp

@@ -835,7 +835,7 @@ FORCE_INLINE void isr() {
 
 #ifdef LIN_ADVANCE
     // avoid multiple instances or function calls to advance_spread
-    if (la_state & ADV_INIT) eISR_Rate = current_block->advance_rate;
+    if (la_state & ADV_INIT) eISR_Rate = current_block->advance_rate / 2;
     if (la_state & ADV_INIT || nextAdvanceISR != ADV_NEVER) {
         advance_spread(main_Rate);
         if (la_state & ADV_DECELERATE) {