ソースを参照

Fixup initial error by defect

Yuri D'Elia 5 年 前
コミット
3abb2188df
1 ファイル変更1 行追加1 行削除
  1. 1 1
      Firmware/stepper.cpp

+ 1 - 1
Firmware/stepper.cpp

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