소스 검색

Correct initialization of eISR_Err

Further tweak the initial term to improve the linearity of the resulting
speed after BW filtering.
Yuri D'Elia 6 년 전
부모
커밋
b6bcb901f3
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Firmware/stepper.cpp

+ 1 - 1
Firmware/stepper.cpp

@@ -846,7 +846,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 / 2;
+    if (la_state & ADV_INIT) eISR_Err = current_block->advance_rate / 4;
     if (la_state & ADV_INIT || nextAdvanceISR != ADV_NEVER) {
         advance_spread(main_Rate);
         if (la_state & ADV_DECELERATE) {