Correct initialization of eISR_Err

Further tweak the initial term to improve the linearity of the resulting
speed after BW filtering.
This commit is contained in:
Yuri D'Elia 2019-06-27 12:50:53 +02:00
parent 2e073527fb
commit b6bcb901f3

View File

@ -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) {