diff --git a/backend/genesys_low.c b/backend/genesys_low.c index 23139ed0e..63420e4f0 100644 --- a/backend/genesys_low.c +++ b/backend/genesys_low.c @@ -1650,7 +1650,7 @@ Motor_Profile *profile; i=0; sum=0; - /* first step is used unmodified */ + /* first step is always used unmodified */ current=profile->table[0]; /* loop on profile copying and apply step type */ @@ -1662,6 +1662,14 @@ Motor_Profile *profile; current=profile->table[i]>>step_type; } + /* ensure last step is required speed in case profile doesn't contain it */ + if(current!=0 && currenttable[i]==0 && DBG_LEVEL >= DBG_warn && current>target) {